Fix broken portal login and password reset due to the timezone set before the session was initiated, now we set the timezone after session has started

This commit is contained in:
johnnyq
2024-11-06 17:55:46 -05:00
parent 6dbf6f0778
commit af9ec9ca85
3 changed files with 9 additions and 13 deletions

View File

@@ -8,9 +8,6 @@ header("Content-Security-Policy: default-src 'self' fonts.googleapis.com fonts.g
require_once '../config.php';
// Set Timezone
require_once "../inc_set_timezone.php";
require_once '../functions.php';
require_once '../get_settings.php';
@@ -25,6 +22,9 @@ if (!isset($_SESSION)) {
session_start();
}
// Set Timezone after session_start
require_once "../inc_set_timezone.php";
// Check to see if client portal is enabled
if($config_client_portal_enable == 0) {
echo "Client Portal is Disabled";