diff --git a/public_html/includes/class/class.LSsession.php b/public_html/includes/class/class.LSsession.php index 307e41f9..de5669d0 100644 --- a/public_html/includes/class/class.LSsession.php +++ b/public_html/includes/class/class.LSsession.php @@ -1249,9 +1249,11 @@ class LSsession { LStemplate :: assign('recoverpasswordform_label_submit',_('Validate')); LStemplate :: assign('recoverpasswordform_label_back',_('Back')); + $recoverpassword_step = 'start'; $recoverpassword_msg = _('Please fill the identifier field to proceed recovery procedure'); if (isset($recoveryPasswordInfos['recoveryHashMail'])) { + $recoverpassword_step = 'token_sent'; $recoverpassword_msg = getFData( _("An email has been sent to %{mail}. " . "Please follow the instructions on it."), @@ -1260,12 +1262,14 @@ class LSsession { } if (isset($recoveryPasswordInfos['newPasswordMail'])) { + $recoverpassword_step = 'new_password_sent'; $recoverpassword_msg = getFData( _("Your new password has been sent to %{mail}. "), $recoveryPasswordInfos['newPasswordMail'] ); } + LStemplate :: assign('recoverpassword_step',$recoverpassword_step); LStemplate :: assign('recoverpassword_msg',$recoverpassword_msg); self :: setTemplate('recoverpassword.tpl'); diff --git a/public_html/templates/default/recoverpassword.tpl b/public_html/templates/default/recoverpassword.tpl index da166f72..ce7df700 100644 --- a/public_html/templates/default/recoverpassword.tpl +++ b/public_html/templates/default/recoverpassword.tpl @@ -15,7 +15,7 @@
-{if !isset($recoverpassword_msg)} +{if $recoverpassword_step == 'start'}
{$recoverpasswordform_label_ldapserver|escape:"htmlall"}
@@ -27,9 +27,9 @@
-{else} -

{$recoverpassword_msg|escape:"htmlall"}

{/if} + +

{$recoverpassword_msg|escape:"htmlall"}

{$lang_label|escape:"htmlall"} : {$LSlang|escape:"htmlall"} {$recoverpasswordform_label_back|escape:"htmlall"}