mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added redirect when a POST value is found
This commit is contained in:
@ -108,6 +108,9 @@ if ((isset($_SESSION['username'])) || (isset($_COOKIE['sess_id'],$_COOKIE['token
|
||||
setcookie("auth", $_COOKIE['auth'], time()+60*60*24*$config['auth_remember'], "/", null, false, true);
|
||||
}
|
||||
$permissions = permissions_cache($_SESSION['user_id']);
|
||||
if (isset($_POST['username'])) {
|
||||
header('Location: '.$_SERVER['REQUEST_URI'],TRUE,303);
|
||||
}
|
||||
}
|
||||
elseif (isset($_SESSION['username']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user