diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index 686b6043c..09eaa9073 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -316,7 +316,7 @@ class LoginWebPage extends NiceWebPage { $aVars['bBadToken'] = false; // Trash the token and change the password - $oUser->Set('reset_pwd_token', ''); + $oUser->Set('reset_pwd_token', new ormPassword()); $oUser->AllowWrite(true); $oUser->SetPassword($sNewPwd); // Does record the change into the DB $aVars['sUrl'] = utils::GetAbsoluteUrlAppRoot();