summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
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