Redirect to the home page after successful login

Jump to the home page instead of displaying a page that only tells you
that you're logged in.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-07-15 11:39:03 +02:00
parent 03486c3b6f
commit 799c1ead82

View file

@ -414,7 +414,7 @@ function try_login($dbh=NULL) {
$cookie_time = 0;
setcookie("AURSID", $new_sid, $cookie_time, "/", null, !empty($_SERVER['HTTPS']), true);
header("Location: " . $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']);
header("Location: " . get_uri('/'));
$login_error = "";
}