Show message after pass reset
This commit is contained in:
parent
485896614b
commit
5e6b7fb6b4
@ -77,7 +77,10 @@ if ($action == 'validatenewpassword' && $username && $passwordhash)
|
|||||||
{
|
{
|
||||||
if (dol_verifyHash($edituser->pass_temp, $passwordhash))
|
if (dol_verifyHash($edituser->pass_temp, $passwordhash))
|
||||||
{
|
{
|
||||||
setEventMessages('NewPasswordValidated', null, 'mesgs');
|
// Clear session
|
||||||
|
$_SESSION['dol_login'] = '';
|
||||||
|
$_SESSION['dol_loginmesg'] = $langs->trans('NewPasswordValidated'); // Save message for the session page
|
||||||
|
|
||||||
$newpassword = $edituser->setPassword($user, $edituser->pass_temp, 0);
|
$newpassword = $edituser->setPassword($user, $edituser->pass_temp, 0);
|
||||||
dol_syslog("passwordforgotten.php new password for user->id=".$edituser->id." validated in database");
|
dol_syslog("passwordforgotten.php new password for user->id=".$edituser->id." validated in database");
|
||||||
header("Location: ".DOL_URL_ROOT.'/');
|
header("Location: ".DOL_URL_ROOT.'/');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user