fix reset of session

This commit is contained in:
Laurent Destailleur 2020-05-06 15:39:07 +02:00
parent 5e6b7fb6b4
commit 4c04ace9d8

View File

@ -78,7 +78,7 @@ if ($action == 'validatenewpassword' && $username && $passwordhash)
if (dol_verifyHash($edituser->pass_temp, $passwordhash))
{
// Clear session
$_SESSION['dol_login'] = '';
unset($_SESSION['dol_login']);
$_SESSION['dol_loginmesg'] = $langs->trans('NewPasswordValidated'); // Save message for the session page
$newpassword = $edituser->setPassword($user, $edituser->pass_temp, 0);