summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-21 14:48:21 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-21 14:48:21 +0000
commita7e50222a51424ac0f101c7abe9f19b1f763b975 (patch)
treeb8b957c7240240912d0beeb6aeae2866f86d38d0 /login.php
parent2ea7061ed6d4eb2c45f173f5168956b23b5295ca (diff)
downloadampache-a7e50222a51424ac0f101c7abe9f19b1f763b975.tar.gz
ampache-a7e50222a51424ac0f101c7abe9f19b1f763b975.tar.bz2
ampache-a7e50222a51424ac0f101c7abe9f19b1f763b975.zip
new disabled support
Diffstat (limited to 'login.php')
-rw-r--r--login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/login.php b/login.php
index 22d50a86..f3e0057b 100644
--- a/login.php
+++ b/login.php
@@ -48,7 +48,7 @@ if ( $_POST['username'] && $_POST['password'] ) {
$password = trim($_POST['password']);
$auth = authenticate($username, $password);
$user = new User($username);
- if ($user->access === 'disabled') {
+ if ($user->disabled === '1') {
$auth['success'] = false;
$auth['error'] = "Error: User Disabled please contact Admin";
} // if user disabled