diff --git a/src/Authenticator/CookieAuthenticator.php b/src/Authenticator/CookieAuthenticator.php index d2e7ff75..b3c12ea9 100644 --- a/src/Authenticator/CookieAuthenticator.php +++ b/src/Authenticator/CookieAuthenticator.php @@ -102,10 +102,10 @@ public function authenticate(ServerRequestInterface $request, ResponseInterface $credentials = [ 'username' => $username ]; - $identity = $this->identifiers()->identify($credentials); + $identity = $this->_identifier->identify($credentials); if (empty($identity)) { - return new Result(null, Result::FAILURE_IDENTITY_NOT_FOUND, $this->identifiers()->getErrors()); + return new Result(null, Result::FAILURE_IDENTITY_NOT_FOUND, $this->_identifier->getErrors()); } if (!$this->_checkToken($identity, $tokenHash)) {