diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2010-12-07 19:22:36 -0500 |
---|---|---|
committer | Paul Arthur <flowerysong00@yahoo.com> | 2010-12-07 19:22:36 -0500 |
commit | e6baf5da9d6b55774561f2ac2801a5ed9e980212 (patch) | |
tree | 9d4944b4d85ef2969932786f68c1ae71bdb3ca9e /login.php | |
parent | 7eb5e494dfe3e0137596750532a330422a00433b (diff) | |
download | ampache-e6baf5da9d6b55774561f2ac2801a5ed9e980212.tar.gz ampache-e6baf5da9d6b55774561f2ac2801a5ed9e980212.tar.bz2 ampache-e6baf5da9d6b55774561f2ac2801a5ed9e980212.zip |
Don't give out extra information when authentication fails, only if it
succeeds and Ampache chokes.
Diffstat (limited to 'login.php')
-rw-r--r-- | login.php | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -120,13 +120,9 @@ if (($_POST['username'] && $_POST['password']) || } else { $auth['success'] = false; - Error::add('general', _('Unable to create new account')); + Error::add('general', _('Unable to create local account')); } } // End if auto_create - elseif (!$user->username) { - $auth['success'] = false; - Error::add('general', _('No local account found')); - } } // if we aren't in demo mode |