Remove duplicate session_start to prevent PHP warnings (#7605)

This commit is contained in:
Alex
2025-11-03 14:24:09 -07:00
committed by GitHub
parent 396b025537
commit 553ff685b2

View File

@@ -89,11 +89,6 @@ class authentication {
//create a settings object to pass to plugins //create a settings object to pass to plugins
$this->settings = new settings(['database' => $this->database, 'domain_uuid' => $this->domain_uuid]); $this->settings = new settings(['database' => $this->database, 'domain_uuid' => $this->domain_uuid]);
//start the session if its not started
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
//set the default authentication method to the database //set the default authentication method to the database
if (empty($_SESSION['authentication']['methods']) || !is_array($_SESSION['authentication']['methods'])) { if (empty($_SESSION['authentication']['methods']) || !is_array($_SESSION['authentication']['methods'])) {
$_SESSION['authentication']['methods'][] = 'database'; $_SESSION['authentication']['methods'][] = 'database';