N°1620: Fix 'forgot your password?' error when resetting password

This commit is contained in:
Eric
2018-11-16 10:34:12 +01:00
parent 7e4f235c59
commit 5cedcb2389

View File

@@ -378,6 +378,7 @@ EOF
{
// Trash the token and change the password
$oUser->Set('reset_pwd_token', '');
$oUser->AllowWrite(true);
$oUser->SetPassword($sNewPwd); // Does record the change into the DB
$this->add("<p>".Dict::S('UI:ResetPwd-Ready')."</p>");