Add conditional session_start to login & set password

This commit is contained in:
bergware
2023-02-03 01:20:56 +01:00
parent 4b796ca844
commit aee5ded94c
+1 -1
View File
@@ -211,7 +211,7 @@ if (!empty($username) && !empty($password)) {
// Successful login, start session
@unlink($failFile);
session_start();
if (session_status()==PHP_SESSION_NONE) session_start();
$_SESSION['unraid_login'] = time();
$_SESSION['unraid_user'] = $username;
session_regenerate_id(true);