mirror of
https://github.com/itflow-org/itflow
synced 2026-03-24 06:25:40 +00:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user