diff --git a/login.php b/login.php index 93c564d2..aa8fed08 100644 --- a/login.php +++ b/login.php @@ -218,11 +218,11 @@ if (isset($_POST['login'])) { //} } - if($_GET['last_visited']) + if ($_GET['last_visited']) { header("Location: ".$_SERVER["REQUEST_SCHEME"] . "://" . $config_base_url . base64_decode($_GET['last_visited']) ); - else + } else { header("Location: $config_start_page"); - + } } else { // MFA is configured and needs to be confirmed, or was unsuccessful