From e7dab1a754c85b8f1e7beeac49496ed9e7435b45 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 28 May 2008 09:52:51 +0000 Subject: Revamped the login functions to separate login from authentication. git-svn-id: https://code.elgg.org/elgg/trunk@728 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/login.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'actions/login.php') diff --git a/actions/login.php b/actions/login.php index e79799a30..1a47dcb51 100644 --- a/actions/login.php +++ b/actions/login.php @@ -17,9 +17,12 @@ $password = get_input("password"); $persistent = get_input("persistent"); - // If all is present and correct, try to log in + // If all is present and correct, try to log in + $result = false; if (!empty($username) && !empty($password)) { - $result = login($username, $password, $persistent); + if ($user = authenticate($username,$password)) { + $result = login($user, $persistent); + } } // Set the system_message as appropriate -- cgit v1.2.3