aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-12-28 09:26:30 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-12-28 09:26:30 +0100
commit426ac22e127b21a4598364f89c6f2eb712ed1f2e (patch)
treeb4bee5c31cf11555f70cc9e70d0a0be16926b919 /include
parent0cb0c2b1bfe22cb0fa983361a2f74d6b0fe6a596 (diff)
downloadvolse-hubzilla-426ac22e127b21a4598364f89c6f2eb712ed1f2e.tar.gz
volse-hubzilla-426ac22e127b21a4598364f89c6f2eb712ed1f2e.tar.bz2
volse-hubzilla-426ac22e127b21a4598364f89c6f2eb712ed1f2e.zip
Redirect to login page on failed login. Fixes #628
Diffstat (limited to 'include')
-rw-r--r--include/auth.php2
1 files changed, 1 insertions, 1 deletions
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