mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
n°524 - password policy
bugfix : Enter Password phrase no more lack the userName and is properly displayed
This commit is contained in:
@@ -267,6 +267,7 @@ class LoginWebPage extends NiceWebPage
|
||||
else
|
||||
{
|
||||
$aVars['bNoUser'] = false;
|
||||
$aVars['sUserName'] = $oUser->GetFriendlyName();
|
||||
$oEncryptedToken = $oUser->Get('reset_pwd_token');
|
||||
|
||||
if (!$oEncryptedToken->CheckPassword($sToken))
|
||||
@@ -276,7 +277,6 @@ class LoginWebPage extends NiceWebPage
|
||||
else
|
||||
{
|
||||
$aVars['bBadToken'] = false;
|
||||
$aVars['sUserName'] = $oUser->GetFriendlyName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,10 +12,13 @@
|
||||
{% elseif bBadToken and sErrorMessage is null %}
|
||||
<p>{{ 'UI:ResetPwd-Error-InvalidToken'|dict_s }}</p>
|
||||
{% else %}
|
||||
{% if sUserName is not empty %}
|
||||
<p>{{ 'UI:ResetPwd-Error-EnterPassword'|dict_format(sUserName) }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if sErrorMessage is not null %}
|
||||
<p class="hilite">{{ sErrorMessage|raw }}</p>
|
||||
{% endif %}
|
||||
<p>{{ 'UI:ResetPwd-Error-EnterPassword'|dict_format(sUserName) }}</p>
|
||||
</div>
|
||||
<div id="login-form">
|
||||
<form method="post">
|
||||
|
||||
Reference in New Issue
Block a user