Merge pull request #778 from pafcu/loginredir
Redirect to login page on failed login. Fixes #628
This commit is contained in:
commit
b7d2b9c1ef
@ -283,7 +283,7 @@ else {
|
|||||||
@file_put_contents($authlog, datetime_convert() . ':' . session_id() . ' ' . $error . "\n", FILE_APPEND);
|
@file_put_contents($authlog, datetime_convert() . ':' . session_id() . ' ' . $error . "\n", FILE_APPEND);
|
||||||
|
|
||||||
notice( t('Login failed.') . EOL );
|
notice( t('Login failed.') . EOL );
|
||||||
goaway(z_root());
|
goaway(z_root() . '/login');
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the user specified to remember the authentication, then change the cookie
|
// If the user specified to remember the authentication, then change the cookie
|
||||||
|
Reference in New Issue
Block a user