mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°2855 - Security hardening
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user