From 4d7f2fdf832bc8b4d764e1a950393acf1f8cc215 Mon Sep 17 00:00:00 2001 From: Mathias Gelhausen Date: Fri, 5 Jun 2015 09:21:34 +0200 Subject: [PATCH] [Auth] Fixes: Register and Reset password does not work: Exception thrown. * Fixes malformed criteria array in User repository. --- module/Auth/src/Auth/Repository/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Auth/src/Auth/Repository/User.php b/module/Auth/src/Auth/Repository/User.php index 4d7ccaa82..722fecd01 100644 --- a/module/Auth/src/Auth/Repository/User.php +++ b/module/Auth/src/Auth/Repository/User.php @@ -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) ) )); }