From 0730ae5b3f02fe562cf07b00a1728912c2b46e7a Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 2 Apr 2015 15:27:29 +0300 Subject: [PATCH] fix forgot password --- application/Espo/Services/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Services/User.php b/application/Espo/Services/User.php index d3d5d97ad1..285ef08387 100644 --- a/application/Espo/Services/User.php +++ b/application/Espo/Services/User.php @@ -104,11 +104,11 @@ class User extends Record 'emailAddress' => $emailAddress ))->findOne(); - if (!$user->isActive()) { + if (empty($user)) { throw new NotFound(); } - if (empty($user)) { + if (!$user->isActive()) { throw new NotFound(); }