We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c664ce commit 1d97670Copy full SHA for 1d97670
src/Authentication/Authenticator/Authenticator.php
@@ -42,7 +42,7 @@ public function authenticate(array $credentials): IIdentity
42
[ $username, $password ] = $this->validateCredentials($credentials);
43
$user = $this->findUser($username);
44
45
- if (!$user->getPassword()->verify($password)) {
+ if (null === $user->getPassword() || !$user->getPassword()->verify($password)) {
46
throw new AuthenticationException(sprintf(
47
'Invalid password for user "%s"',
48
$username
0 commit comments