Add message during password reset
This commit is contained in:
parent
1ec8b31e46
commit
485896614b
@ -78,6 +78,7 @@ UserWillBeExternalUser=Created user will be an external user (because linked to
|
||||
IdPhoneCaller=Id phone caller
|
||||
NewUserCreated=User %s created
|
||||
NewUserPassword=Password change for %s
|
||||
NewPasswordValidated=Your new password have been validated and must be used now to login.
|
||||
EventUserModified=User %s modified
|
||||
UserDisabled=User %s disabled
|
||||
UserEnabled=User %s activated
|
||||
|
||||
@ -77,7 +77,8 @@ if ($action == 'validatenewpassword' && $username && $passwordhash)
|
||||
{
|
||||
if (dol_verifyHash($edituser->pass_temp, $passwordhash))
|
||||
{
|
||||
$newpassword = $edituser->setPassword($user, $edituser->pass_temp, 0);
|
||||
setEventMessages('NewPasswordValidated', null, 'mesgs');
|
||||
$newpassword = $edituser->setPassword($user, $edituser->pass_temp, 0);
|
||||
dol_syslog("passwordforgotten.php new password for user->id=".$edituser->id." validated in database");
|
||||
header("Location: ".DOL_URL_ROOT.'/');
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user