summaryrefslogtreecommitdiffstats
path: root/frontends/php/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/index.php')
-rw-r--r--frontends/php/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/index.php b/frontends/php/index.php
index 8524d3d4..6ec3c17d 100644
--- a/frontends/php/index.php
+++ b/frontends/php/index.php
@@ -65,7 +65,8 @@
' FROM users u '.
' WHERE u.alias='.zbx_dbstr($name).
' AND u.passwd='.zbx_dbstr($password).
- ' AND '.DBin_node('u.userid', $ZBX_LOCALNODEID)));
+ ' AND '.DBin_node('u.userid', $ZBX_LOCALNODEID).
+ ' AND status='.USER_STATUS_ENABLED));
if($row){
$sessionid = md5(time().$password.$name.rand(0,10000000));