mirror of
https://github.com/itflow-org/itflow
synced 2026-03-20 04:34:51 +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:
@@ -5,13 +5,8 @@
|
||||
*/
|
||||
|
||||
require_once '../config.php';
|
||||
|
||||
// Set Timezone
|
||||
require_once "../inc_set_timezone.php";
|
||||
|
||||
require_once '../functions.php';
|
||||
|
||||
|
||||
if (!isset($_SESSION)) {
|
||||
// HTTP Only cookies
|
||||
ini_set("session.cookie_httponly", true);
|
||||
@@ -22,6 +17,9 @@ if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
|
||||
// Set Timezone after session starts
|
||||
require_once "../inc_set_timezone.php";
|
||||
|
||||
$sql_settings = mysqli_query($mysqli, "SELECT config_azure_client_id, config_azure_client_secret FROM settings WHERE company_id = 1");
|
||||
$settings = mysqli_fetch_array($sql_settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user