From da5a9661782ff33d199ab648cc16799b37e662dd Mon Sep 17 00:00:00 2001 From: RomanSteinberg <romanofficial@yandex.ru> Date: Fri, 3 Apr 2015 19:17:09 +0300 Subject: [PATCH] ADD: response for not registered email in recovery password dialog --- ~dev_rating/modules/account/classes/Kohana/Account.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/~dev_rating/modules/account/classes/Kohana/Account.php b/~dev_rating/modules/account/classes/Kohana/Account.php index 17522dd84..e69c3caa5 100644 --- a/~dev_rating/modules/account/classes/Kohana/Account.php +++ b/~dev_rating/modules/account/classes/Kohana/Account.php @@ -161,7 +161,9 @@ class Kohana_Account { $UserFullName = $this->_model->createRecoveryToken($email, $requestToken); if (!$UserFullName) - return; // TODO: generate recovery token error + throw HTTP_Exception::factory(403, + 'Пользователь с таким e-mail адресом не зарегистрирован в системе!'); + $subject = ASSEMBLY_SYSTEM_NAME.": Восстановление пароля"; $twig = Twig::factory('email/recovery'); -- GitLab