Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Feb 22, 2020
1 parent 35c4874 commit 7145f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Validator/Constraints/AuthenticateAdminLoginValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function validate($object, Constraint $constraint)
$this->setPassword((int) $user['uid'], $object['password']);
} elseif (
// new way
$passwordEncoder->isPasswordValid($user['pass'], $object['password'], NULL)) {
$passwordEncoder->isPasswordValid($user['pass'], $object['password'], null)) {
$validPassword = true;
if ($passwordEncoder->needsRehash($user['pass'])) { // check to update hash to newer algo
$this->setPassword((int) $user['uid'], $object['password']);
Expand Down

0 comments on commit 7145f85

Please sign in to comment.