fix forgot password

This commit is contained in:
yuri
2015-04-02 15:27:29 +03:00
parent a7f537879e
commit 0730ae5b3f
+2 -2
View File
@@ -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();
}