mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed device group rule suggest, Auth before init (#8538)
* Fix Auth before init * Fix Auth before init
This commit is contained in:
committed by
Neil Lathwood
parent
d1ad2696d1
commit
a21c0bccc4
@@ -17,14 +17,13 @@
|
||||
|
||||
use LibreNMS\Authentication\Auth;
|
||||
|
||||
session_start();
|
||||
$init_modules = array('web', 'auth');
|
||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
if (!Auth::check()) {
|
||||
die('Unauthorized.');
|
||||
}
|
||||
|
||||
$init_modules = array('web');
|
||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
set_debug($_REQUEST['debug']);
|
||||
|
||||
/**
|
||||
|
@@ -25,14 +25,13 @@
|
||||
|
||||
use LibreNMS\Authentication\Auth;
|
||||
|
||||
session_start();
|
||||
$init_modules = array('web', 'auth');
|
||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
if (!Auth::check()) {
|
||||
die('Unauthorized.');
|
||||
}
|
||||
|
||||
$init_modules = array('web');
|
||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
set_debug($_REQUEST['debug']);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user