N°5393 Security hardening

This commit is contained in:
Stephen Abello
2022-08-12 09:54:35 +02:00
parent 8fa616f440
commit 35a8b501c9

View File

@@ -208,7 +208,7 @@ class LoginWebPage extends NiceWebPage
}
// This token allows the user to change the password without knowing the previous one
$sToken = substr(md5(APPROOT.uniqid()), 0, 16);
$sToken = bin2hex(random_bytes(32));
$oUser->Set('reset_pwd_token', $sToken);
CMDBObject::SetTrackInfo('Reset password');
$oUser->AllowWrite(true);