diff --git a/swad_changelog.h b/swad_changelog.h index db6a015a7..2500b4dbb 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -428,10 +428,11 @@ En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 18.66.1 (2019-03-06)" +#define Log_PLATFORM_VERSION "SWAD 18.66.2 (2019-03-06)" #define CSS_FILE "swad18.66.css" #define JS_FILE "swad18.64.js" /* + Version 18.66.2: Mar 06, 2019 Fixed bug while sending a new password, reported by Rosa María Cantarero López. (238672 lines) Version 18.66.1: Mar 06, 2019 Changed order of figures in user's profile. (238671 lines) Version 18.66: Mar 06, 2019 Number of social posts is added as a new column in users' ranking. Only figures greater than 0 are shown in users' ranking. (238671 lines) diff --git a/swad_password.c b/swad_password.c index 092d6c495..406ab981d 100644 --- a/swad_password.c +++ b/swad_password.c @@ -344,7 +344,7 @@ void Pwd_ChkIdLoginAndSendNewPwd (void) /* Get user's data */ ListUsrCods.NumUsrs = 1; Usr_AllocateListUsrCods (&ListUsrCods); - ListUsrCods.Lst[0] = Gbl.Usrs.Other.UsrDat.UsrCod; + ListUsrCods.Lst[0] = Gbl.Usrs.Me.UsrDat.UsrCod; } } else if (Mai_CheckIfEmailIsValid (Gbl.Usrs.Me.UsrIdLogin)) // 2: It's an email @@ -354,7 +354,7 @@ void Pwd_ChkIdLoginAndSendNewPwd (void) /* Get user's data */ ListUsrCods.NumUsrs = 1; Usr_AllocateListUsrCods (&ListUsrCods); - ListUsrCods.Lst[0] = Gbl.Usrs.Other.UsrDat.UsrCod; + ListUsrCods.Lst[0] = Gbl.Usrs.Me.UsrDat.UsrCod; } } else // 3: It's not a nickname nor email @@ -391,7 +391,6 @@ void Pwd_ChkIdLoginAndSendNewPwd (void) { case 0: // Message sent successfully Pwd_SetMyPendingPassword (NewRandomPlainPassword); - Ale_ShowAlert (Ale_INFO,Txt_If_you_have_written_your_ID_nickname_or_email_correctly_); break; case 1: Lay_ShowErrorAndExit (Txt_There_was_a_problem_sending_an_email_automatically);