aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/login.php7
1 files changed, 5 insertions, 2 deletions
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