Update check_auth.php

This commit is contained in:
FusionPBX 2024-01-22 23:45:00 -07:00 committed by GitHub
parent ee202cd61d
commit dce6406791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@
//validate the session address
if ($_SESSION['authorized'] && $_SESSION["user_hash"] !== hash('sha256', $_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT'])) {
session_destroy();
header("Location: ".PROJECT_PATH."/?path=".urlencode($target_path));
header("Location: ".PROJECT_PATH."/logout.php");
}
//if the session is not authorized then verify the identity