Update login.php If standard

This commit is contained in:
Hugo Sampaio 2024-05-04 19:25:10 -03:00 committed by GitHub
parent 17eb51bd54
commit 5280620c6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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