mirror of https://github.com/acanas/swad-core.git
Version 14.107.6
This commit is contained in:
parent
f7a7c40f95
commit
f04217f3ea
|
@ -108,6 +108,7 @@
|
|||
// 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 14.107.6: Apr 03, 2015 Changes in layout of form to change password. (183748 lines)
|
||||
Version 14.107.5: Apr 03, 2015 Changes in layout of form to change photo. (183718 lines)
|
||||
Version 14.107.4: Apr 03, 2015 Fixed bugs when changing user's ID, password and photo. (183699 lines)
|
||||
Version 14.107.3: Apr 02, 2015 Changes in icons in attendance events.
|
||||
|
|
|
@ -657,7 +657,8 @@ void Pwd_ShowFormChgPwd (void)
|
|||
extern const char *Txt_Your_password_must_be_at_least_X_characters_and_can_not_contain_spaces_;
|
||||
extern const char *Txt_Password;
|
||||
extern const char *Txt_Current_password;
|
||||
extern const char *Txt_Save;
|
||||
extern const char *Txt_Change_password;
|
||||
extern const char *Txt_Set_password;
|
||||
bool IHaveAPasswordInDB = (bool) Gbl.Usrs.Me.UsrDat.Password[0];
|
||||
|
||||
/***** Help message *****/
|
||||
|
@ -669,16 +670,13 @@ void Pwd_ShowFormChgPwd (void)
|
|||
Lay_ShowAlert (Lay_WARNING,Txt_Your_password_is_not_secure_enough);
|
||||
}
|
||||
|
||||
sprintf (Gbl.Message,Txt_Your_password_must_be_at_least_X_characters_and_can_not_contain_spaces_,
|
||||
Pwd_MIN_LENGTH_PLAIN_PASSWORD);
|
||||
Lay_ShowAlert (Lay_INFO,Gbl.Message);
|
||||
|
||||
/***** Start form *****/
|
||||
Act_FormStart (ActChgPwd);
|
||||
|
||||
/***** Start table *****/
|
||||
Lay_StartRoundFrameTable10 (NULL,2,Txt_Password);
|
||||
|
||||
/* Current password */
|
||||
if (IHaveAPasswordInDB) // If I have a password in database...
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s\" style=\"text-align:right;\">"
|
||||
|
@ -686,18 +684,30 @@ void Pwd_ShowFormChgPwd (void)
|
|||
"</td>"
|
||||
"<td style=\"text-align:left;\">"
|
||||
"<input type=\"password\" name=\"UsrPwd\""
|
||||
" size=\"25\" maxlength=\"%u\" />"
|
||||
" size=\"25\" maxlength=\"%u\" autocomplete=\"off\" />"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
The_ClassFormul[Gbl.Prefs.Theme],
|
||||
Txt_Current_password,
|
||||
Pwd_MAX_LENGTH_PLAIN_PASSWORD);
|
||||
|
||||
/* Help message */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\">");
|
||||
sprintf (Gbl.Message,Txt_Your_password_must_be_at_least_X_characters_and_can_not_contain_spaces_,
|
||||
Pwd_MIN_LENGTH_PLAIN_PASSWORD);
|
||||
Lay_ShowAlert (Lay_INFO,Gbl.Message);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
|
||||
/* New password */
|
||||
Pwd_PutFormToGetNewPasswordTwice ();
|
||||
|
||||
/***** Send button and end form *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\" style=\"text-align:center;\">");
|
||||
Lay_PutConfirmButton (Txt_Save);
|
||||
Lay_PutConfirmButton (IHaveAPasswordInDB ? Txt_Change_password :
|
||||
Txt_Set_password);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
Lay_EndRoundFrameTable10 ();
|
||||
|
|
|
@ -276,7 +276,7 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho
|
|||
|
||||
/***** Show current photo and help message *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\" style=\"text-align:center;\">");
|
||||
"<td colspan=\"2\">");
|
||||
Pho_ShowUsrPhoto (UsrDat,PhotoURL,"PHOTO150x200",Pho_NO_ZOOM);
|
||||
Lay_ShowAlert (Lay_INFO,Txt_You_can_send_a_file_with_an_image_in_jpg_format_);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
|
23
swad_text.c
23
swad_text.c
|
@ -4075,7 +4075,7 @@ const char *Txt_Change_password =
|
|||
#elif L==3
|
||||
"Cambiar contraseña";
|
||||
#elif L==4
|
||||
"Changer le mot de passe";
|
||||
"Changer mot de passe";
|
||||
#elif L==5
|
||||
"Cambiar contraseña"; // Okoteve traducción
|
||||
#elif L==6
|
||||
|
@ -33807,6 +33807,27 @@ const char *Txt_Send =
|
|||
"Enviar";
|
||||
#endif
|
||||
|
||||
const char *Txt_Set_password =
|
||||
#if L==0
|
||||
"Establir contrasenya";
|
||||
#elif L==1
|
||||
"Passwort festlegen";
|
||||
#elif L==2
|
||||
"Set password";
|
||||
#elif L==3
|
||||
"Establecer contraseña";
|
||||
#elif L==4
|
||||
"Définir mot de passe";
|
||||
#elif L==5
|
||||
"Establecer contraseña"; // Okoteve traducción
|
||||
#elif L==6
|
||||
"Impostare password";
|
||||
#elif L==7
|
||||
"Ustaw hasło";
|
||||
#elif L==8
|
||||
"Definir senha";
|
||||
#endif
|
||||
|
||||
const char *Txt_Publish_announcement_OF_EXAM =
|
||||
#if L==0
|
||||
"Publicar convocatòria";
|
||||
|
|
Loading…
Reference in New Issue