From 848bb7df4b85a5d4c37e559f6b58491c1b3996cd Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 17 Apr 2020 23:27:36 -0600 Subject: [PATCH] Update check_auth.php --- resources/check_auth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/check_auth.php b/resources/check_auth.php index cbaa85e8e6..00d8b38b66 100644 --- a/resources/check_auth.php +++ b/resources/check_auth.php @@ -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(); + } } }