From 426ac22e127b21a4598364f89c6f2eb712ed1f2e Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Sun, 28 Dec 2014 09:26:30 +0100 Subject: Redirect to login page on failed login. Fixes #628 --- include/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/auth.php') diff --git a/include/auth.php b/include/auth.php index 545fbe8c9..c4bbaf546 100644 --- a/include/auth.php +++ b/include/auth.php @@ -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 -- cgit v1.2.3