summaryrefslogtreecommitdiffstats
path: root/frontends/php/index.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-14 14:45:56 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-01-14 14:45:56 +0000
commit8c131d6804ff7f8b8d30ec2405671a14a7ec84f9 (patch)
treec03a1511056dbd3c66f674162006c5b9764620ee /frontends/php/index.php
parent3ee8a188032fbd4f0d112ba7a7af55e1cfb0e50c (diff)
downloadzabbix-8c131d6804ff7f8b8d30ec2405671a14a7ec84f9.tar.gz
zabbix-8c131d6804ff7f8b8d30ec2405671a14a7ec84f9.tar.xz
zabbix-8c131d6804ff7f8b8d30ec2405671a14a7ec84f9.zip
- [DEV-96] added availability to disable default user "guest" (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5246 97f52cf1-0a1b-0410-bd0e-c28be96e8082
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));