mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-24 04:44:35 +02:00
Fixed static analysis issues.
This commit is contained in:
parent
51e05a8669
commit
58ada496e4
4 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue