Browse Source

Update check_auth.php

FusionPBX 5 years ago
parent
commit
7112d0fd43
1 changed files with 4 additions and 2 deletions
  1. 4 2
      resources/check_auth.php

+ 4 - 2
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();
+					}
 				}
 			}