N°2855 - Security hardening

(cherry picked from commit c5c7fd5c85)
This commit is contained in:
Stephen Abello
2020-03-12 14:13:17 +01:00
committed by Eric
parent bd083d632f
commit f9af8fc912

View File

@@ -384,7 +384,7 @@ EOF
else
{
// 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