Update check_auth.php

This commit is contained in:
FusionPBX 2020-04-17 23:27:36 -06:00 committed by GitHub
parent a1a7268451
commit 848bb7df4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -261,8 +261,10 @@
exit();
}
else if ($_SESSION['login']['destination']['url'] != '') {
header("Location: ".$_SESSION['login']['destination']['url']);
exit();
if (isset($_SESSION["username"]) && (strlen($_SESSION["username"]) > 0)) {
header("Location: ".$_SESSION['login']['destination']['url']);
exit();
}
}
}