From e6baf5da9d6b55774561f2ac2801a5ed9e980212 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Tue, 7 Dec 2010 19:22:36 -0500 Subject: Don't give out extra information when authentication fails, only if it succeeds and Ampache chokes. --- login.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'login.php') diff --git a/login.php b/login.php index d380017b..b2df3237 100644 --- a/login.php +++ b/login.php @@ -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 -- cgit