Skip to content
Permalink
Browse files

Reduce method calls.

  • Loading branch information...
markstory committed Jul 8, 2017
1 parent 0eec6c7 commit b98cf473a35d5d0ea822ae5f0f6721ce2d22f6e1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Auth/BaseAuthenticate.php
@@ -121,8 +121,8 @@ protected function _findUser($username, $password = null)
$this->_needsPasswordRehash = $hasher->needsRehash($hashedPassword);
$result->unsetProperty($passwordField);
}
if ($password === null && in_array($passwordField, $result->getHidden())) {
$hidden = $result->getHidden();
$hidden = $result->getHidden();
if ($password === null && in_array($passwordField, $hidden)) {
$key = array_search($passwordField, $hidden);
unset($hidden[$key]);
$result->setHidden($hidden);

0 comments on commit b98cf47

Please sign in to comment.
You can’t perform that action at this time.