Fixed static analysis issues.

This commit is contained in:
Jan Böhmer 2022-09-18 23:44:44 +02:00
parent 51e05a8669
commit 58ada496e4
4 changed files with 11 additions and 4 deletions

View file

@ -85,7 +85,7 @@ class PasswordResetManager
}
$unencrypted_token = md5(random_bytes(32));
$user->setPwResetToken($this->passwordEncoder->hash($unencrypted_token, null));
$user->setPwResetToken($this->passwordEncoder->hash($unencrypted_token));
//Determine the expiration datetime of
$expiration_date = new DateTime();
@ -140,7 +140,7 @@ class PasswordResetManager
}
//Check if token is valid
if (!$this->passwordEncoder->verify($user->getPwResetToken(), $token, null)) {
if (!$this->passwordEncoder->verify($user->getPwResetToken(), $token)) {
return false;
}