mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Keeps the dashboard sessions from expiring. (#9263)
* Keeps the dashboard sessions from expiring. Route dashboard ajax calls through Laravel. Boots minimal cookies and sessions. Does not fix other pages for now, real fix is to fully port. * Check Laravel auth for the legacy calls. Display Laravel errors in the dashboard. legacy auth checks are mostly extraneous now.
This commit is contained in:
@@ -93,13 +93,7 @@ if (module_selected('alerts', $init_modules)) {
|
||||
}
|
||||
|
||||
if (module_selected('laravel', $init_modules)) {
|
||||
// make sure Laravel isn't already booted
|
||||
if (!class_exists('App') || !App::isBooted()) {
|
||||
define(LARAVEL_START, microtime(true));
|
||||
$app = require_once $install_dir . '/bootstrap/app.php';
|
||||
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
||||
$kernel->bootstrap();
|
||||
}
|
||||
\LibreNMS\Util\Laravel::bootCli();
|
||||
}
|
||||
|
||||
if (!module_selected('nodb', $init_modules)) {
|
||||
|
Reference in New Issue
Block a user