mirror of
https://github.com/unraid/webgui.git
synced 2026-03-06 00:18:57 -06:00
If no regkey use 'Tools>Registration' as start page
This commit is contained in:
@@ -9,8 +9,8 @@ if (!empty($_COOKIE['unraid_'.md5($server_name)])) {
|
||||
|
||||
// Check if the user is already logged in
|
||||
if ($_SESSION && !empty($_SESSION['unraid_user'])) {
|
||||
// If so redirect them to the start page
|
||||
header("Location: /".$var['START_PAGE']);
|
||||
// Redirect the user to the start page
|
||||
header("Location: /".$start_page);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -219,7 +219,7 @@ if (!empty($username) && !empty($password)) {
|
||||
exec("logger -t webGUI -- \"Successful login user {$username} from {$remote_addr}\"");
|
||||
|
||||
// Redirect the user to the start page
|
||||
header("Location: /".$var['START_PAGE']);
|
||||
header("Location: /".$start_page);
|
||||
exit;
|
||||
} catch (Exception $exception) {
|
||||
// Set error message
|
||||
|
||||
@@ -30,7 +30,8 @@ if (!empty($_POST['password']) && !empty($_POST['confirmPassword'])) {
|
||||
session_regenerate_id(true);
|
||||
session_write_close();
|
||||
|
||||
header("Location: /".$var['START_PAGE']);
|
||||
// Redirect the user to the start page
|
||||
header("Location: /".$start_page);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user