summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/frontend/user/DbUser.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/frontend/user/DbUser.php b/app/frontend/user/DbUser.php
index 3fc9b80..55dcf05 100644
--- a/app/frontend/user/DbUser.php
+++ b/app/frontend/user/DbUser.php
@@ -46,6 +46,9 @@ class DbUser extends TDbUser {
public function validateUser($login, $password) {
$user = UserFacade::getInstance()->findByLogin($login);
+ if (!($user && $user->IsActive)) {
+ return FALSE;
+ }
$dbPassword = $user ? $user->Password : '';
if (UserFacade::getInstance()->verifyPassword($password, $dbPassword)
&& $user) {