Redirect to login page on failed login. Fixes #628

This commit is contained in:
Stefan Parviainen 2014-12-28 09:26:30 +01:00
parent 0cb0c2b1bf
commit 426ac22e12

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