mirror of https://github.com/acanas/swad-core.git
Version 16.156.2
This commit is contained in:
parent
97326c1416
commit
819e768782
|
@ -133,7 +133,6 @@
|
|||
|
||||
// TODO: If a user creates a request for inscription, and the user is removed ==> mark possible notifications as removed
|
||||
|
||||
// TODO: FIX BUG: Passwords with % do not work
|
||||
// TODO: When SWAD prompts the user to confirm elimination of a group, list the groups below the button
|
||||
|
||||
// TODO: Send a message to the user when rejecting a request for enrollment. Suggested by Javier Fernández Baldomero.
|
||||
|
@ -204,18 +203,20 @@
|
|||
|
||||
// TODO: En la agenda debe poder repetirse el nombre del evento
|
||||
// TODO: Cuando hay un fallo al rellenar el formulario de nuevo evento en la agenda se borran los datos
|
||||
// TODO: Comprobar cabecera de una orla cuando el ámbito actual es un centro
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.156.1 (2017-03-15)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.156.2 (2017-03-16)"
|
||||
#define CSS_FILE "swad16.156.1.css"
|
||||
#define JS_FILE "swad16.144.js"
|
||||
|
||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||
/*
|
||||
Version 16.156.2: Mar 16, 2017 Fixed bug in passwords. (217076 lines)
|
||||
Version 16.156.1: Mar 15, 2017 Force vertical scrollbar. (217078 lines)
|
||||
Version 16.156: Mar 15, 2017 Fixed bug in messages, reported by Francisco Ocaña Lara. (217063 lines)
|
||||
Version 16.155.35:Mar 15, 2017 Some help URLs translated to spanish. (217047 lines)
|
||||
|
|
|
@ -389,9 +389,6 @@ static void Lay_WriteEndOfPage (void)
|
|||
"</div>" // main_zone
|
||||
"</div>\n"); // whole_page_* (box that contains the whole page except the foot)
|
||||
|
||||
/***** Script for MathJax *****/
|
||||
Lay_WriteScriptMathJax ();
|
||||
|
||||
Gbl.Layout.DivsEndWritten = true;
|
||||
}
|
||||
}
|
||||
|
@ -475,7 +472,7 @@ static void Lay_WriteScripts (void)
|
|||
Cfg_URL_SWAD_PUBLIC,JS_FILE);
|
||||
|
||||
/***** Script for MathJax *****/
|
||||
// Lay_WriteScriptMathJax ();
|
||||
Lay_WriteScriptMathJax ();
|
||||
|
||||
/***** Scripts used only in main window *****/
|
||||
if (Act_Actions[Gbl.Action.Act].BrowserWindow == Act_THIS_WINDOW)
|
||||
|
|
|
@ -183,15 +183,16 @@ void Pwd_ActChgMyPwd1 (void)
|
|||
sprintf (Gbl.Message,"%s",Txt_You_have_not_written_twice_the_same_new_password);
|
||||
else
|
||||
{
|
||||
Str_ChangeFormat (Str_FROM_FORM,Str_TO_TEXT,
|
||||
NewPlainPassword[0],Pwd_MAX_BYTES_PLAIN_PASSWORD,true);
|
||||
Cry_EncryptSHA512Base64 (NewPlainPassword[0],NewEncryptedPassword);
|
||||
if (Pwd_SlowCheckIfPasswordIsGood (NewPlainPassword[0],NewEncryptedPassword,Gbl.Usrs.Me.UsrDat.UsrCod)) // New password is good?
|
||||
if (Pwd_SlowCheckIfPasswordIsGood (NewPlainPassword[0],NewEncryptedPassword,
|
||||
Gbl.Usrs.Me.UsrDat.UsrCod)) // New password is good?
|
||||
{
|
||||
/* Update my data */
|
||||
Str_Copy (Gbl.Usrs.Me.UsrDat.Password,NewEncryptedPassword,
|
||||
Pwd_BYTES_ENCRYPTED_PASSWORD);
|
||||
Ses_UpdateSessionDataInDB ();
|
||||
Enr_UpdateUsrData (&Gbl.Usrs.Me.UsrDat);
|
||||
|
||||
sprintf (Gbl.Message,"%s",Txt_Your_password_has_been_changed_successfully);
|
||||
Gbl.Usrs.Error = false;
|
||||
}
|
||||
|
@ -504,10 +505,9 @@ void Pwd_UpdateOtherPwd1 (void)
|
|||
sprintf (Gbl.Message,"%s",Txt_You_have_not_written_twice_the_same_new_password);
|
||||
else
|
||||
{
|
||||
Str_ChangeFormat (Str_FROM_FORM,Str_TO_TEXT,
|
||||
NewPlainPassword[0],Pwd_MAX_BYTES_PLAIN_PASSWORD,true);
|
||||
Cry_EncryptSHA512Base64 (NewPlainPassword[0],NewEncryptedPassword);
|
||||
if (Pwd_SlowCheckIfPasswordIsGood (NewPlainPassword[0],NewEncryptedPassword,Gbl.Usrs.Other.UsrDat.UsrCod)) // Good password
|
||||
if (Pwd_SlowCheckIfPasswordIsGood (NewPlainPassword[0],NewEncryptedPassword,
|
||||
Gbl.Usrs.Other.UsrDat.UsrCod)) // New password is good?
|
||||
{
|
||||
/* Update other user's data */
|
||||
Str_Copy (Gbl.Usrs.Other.UsrDat.Password,NewEncryptedPassword,
|
||||
|
|
Loading…
Reference in New Issue