Skip to content

Commit 1d97670

Browse files
committed
Fixed password verifying in the Authenticator
1 parent 9c664ce commit 1d97670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Authentication/Authenticator/Authenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function authenticate(array $credentials): IIdentity
4242
[ $username, $password ] = $this->validateCredentials($credentials);
4343
$user = $this->findUser($username);
4444

45-
if (!$user->getPassword()->verify($password)) {
45+
if (null === $user->getPassword() || !$user->getPassword()->verify($password)) {
4646
throw new AuthenticationException(sprintf(
4747
'Invalid password for user "%s"',
4848
$username

0 commit comments

Comments
 (0)