diff --git a/html/includes/authenticate.inc.php b/html/includes/authenticate.inc.php index 42dc82b33e..e64465a35e 100644 --- a/html/includes/authenticate.inc.php +++ b/html/includes/authenticate.inc.php @@ -108,6 +108,10 @@ if ((isset($_SESSION['username'])) || (isset($_COOKIE['sess_id'],$_COOKIE['token setcookie("auth", $_COOKIE['auth'], time()+60*60*24*$config['auth_remember'], "/", null, false, true); } $permissions = permissions_cache($_SESSION['user_id']); + if (isset($_POST['username'])) { + header('Location: '.$_SERVER['REQUEST_URI'],TRUE,303); + exit; + } } elseif (isset($_SESSION['username'])) {