summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-14 23:23:12 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-14 23:23:12 +0000
commit0ac27764e1d5e3499a3ca2ded0018d33c42ae50b (patch)
treec3ce17c9ce82065d1008c29bb127b447adadbe05 /login.php
parentf3e58ba9bd907cc2c17085579d8663c17bead464 (diff)
downloadampache-0ac27764e1d5e3499a3ca2ded0018d33c42ae50b.tar.gz
ampache-0ac27764e1d5e3499a3ca2ded0018d33c42ae50b.tar.bz2
ampache-0ac27764e1d5e3499a3ca2ded0018d33c42ae50b.zip
fixed some bugs introduced by the ldap patch
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 85bcd367..fab78422 100644
--- a/login.php
+++ b/login.php
@@ -78,7 +78,7 @@ if ($_POST['username'] && $_POST['password']) {
$auth['error'] = _('User Disabled please contact Admin');
} // if user disabled
- elseif (!$user->username) {
+ elseif (!$user->username AND $auth['success']) {
/* This is run if we want to auto_create users who don't exist (usefull for non mysql auth) */
if (conf('auto_create')) {
if (!$access = conf('auto_user')) { $access = '5'; }