mirror of
https://github.com/unraid/webgui.git
synced 2026-05-09 05:41:17 -05:00
Add conditional session_start to login & set password
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user