Skip to content

Commit

Permalink
Missing arrayaccess in authenticator.
Browse files Browse the repository at this point in the history
  • Loading branch information
mducharme committed Jul 30, 2019
1 parent a862ed5 commit 09e546e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Charcoal/User/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function authenticateByPassword($email, $password)
return null;
}

if ($user->active() === false) {
if ($user['active'] === false) {
return null;
}

Expand All @@ -138,7 +138,7 @@ public function authenticateByPassword($email, $password)
if (password_needs_rehash($user['password'], PASSWORD_DEFAULT)) {
$this->logger->notice(sprintf(
'Rehashing password for user "%s" (%s)',
$user->email(),
$user['email'],
$this->userType()
));
$hash = password_hash($password, PASSWORD_DEFAULT);
Expand All @@ -152,7 +152,7 @@ public function authenticateByPassword($email, $password)
} else {
$this->logger->warning(sprintf(
'Invalid login attempt for user "%s": invalid password.',
$user->email()
$user['email']
));

return null;
Expand Down

0 comments on commit 09e546e

Please sign in to comment.