No error when password was bad

Caused a weird refresh, not ideal.
This commit is contained in:
Joshua Sherman 2013-12-28 13:56:48 -05:00
parent d0617dd707
commit af9998591e

View file

@ -26,9 +26,8 @@ class user_authenticate extends AnonymousModule
if ($user['password'] == crypt($_POST['password'], $user['password']))
{
setcookie('__auth', base64_encode($uid . '|' . $user['auth']), time() + Time::YEAR, '/');
return array('status' => 'success', 'url' => '/leaderboards');
}
return array('status' => 'success', 'url' => '/leaderboards');
}
return array('error' => 'Invalid email address or password.');