Update check_auth.php

This commit is contained in:
FusionPBX 2017-07-01 10:09:17 -06:00 committed by GitHub
parent 52ba793640
commit b67852f20a
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@
if (!isset($_SESSION['template_content'])) { $_SESSION["template_content"] = null; }
//if the username is not provided then send to login.php
if (strlen($_REQUEST["username"]) == 0 && strlen($_REQUEST["key"]) == 0) {
if (strlen($_SESSION['username']) == 0 && strlen($_REQUEST["username"]) == 0 && strlen($_REQUEST["key"]) == 0) {
$target_path = ($_REQUEST["path"] != '') ? $_REQUEST["path"] : $_SERVER["REQUEST_URI"];
header("Location: ".PROJECT_PATH."/login.php?path=".urlencode($target_path));
exit;