mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
03486c3b6f
commit
799c1ead82
1 changed files with 1 additions and 1 deletions
|
@ -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 = "";
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue