Skip to content

Commit

Permalink
[Auth] Fixes: Register and Reset password does not work: Exception th…
Browse files Browse the repository at this point in the history
…rown.

* Fixes malformed criteria array in User repository.
  • Loading branch information
TiSiE committed Jun 5, 2015
1 parent 99b3b20 commit 4d7f2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Auth/src/Auth/Repository/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public function findByLoginOrEmail($identity, $suffix = '')
{
return $this->findOneBy(array(
'$or' => array(
'login' => $identity . $suffix,
'info.email' => $identity
array('login' => $identity . $suffix),
array('info.email' => $identity)
)
));
}
Expand Down

0 comments on commit 4d7f2fd

Please sign in to comment.