Merge pull request #778 from pafcu/loginredir

Redirect to login page on failed login. Fixes #628
This commit is contained in:
RedMatrix 2014-12-29 09:29:23 +11:00
commit b7d2b9c1ef

View file

@ -283,7 +283,7 @@ else {
@file_put_contents($authlog, datetime_convert() . ':' . session_id() . ' ' . $error . "\n", FILE_APPEND);
notice( t('Login failed.') . EOL );
goaway(z_root());
goaway(z_root() . '/login');
}
// If the user specified to remember the authentication, then change the cookie