No error when password was bad
Caused a weird refresh, not ideal.
This commit is contained in:
parent
d0617dd707
commit
af9998591e
1 changed files with 1 additions and 2 deletions
|
@ -26,9 +26,8 @@ class user_authenticate extends AnonymousModule
|
||||||
if ($user['password'] == crypt($_POST['password'], $user['password']))
|
if ($user['password'] == crypt($_POST['password'], $user['password']))
|
||||||
{
|
{
|
||||||
setcookie('__auth', base64_encode($uid . '|' . $user['auth']), time() + Time::YEAR, '/');
|
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.');
|
return array('error' => 'Invalid email address or password.');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue