From 7abc568b57e2776f2ee9007544996b40ee014982 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 26 Feb 2024 15:53:09 -0800 Subject: [PATCH] make shell user login an admin --- panel/classes/Panel/Login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/panel/classes/Panel/Login.php b/panel/classes/Panel/Login.php index 73645d3..909e9e1 100644 --- a/panel/classes/Panel/Login.php +++ b/panel/classes/Panel/Login.php @@ -51,6 +51,7 @@ class Login extends \Panel { exec("/usr/bin/echo -e '$username\\n$password\\n' | /usr/sbin/pwauth", $output, $result_code); if ($result_code == 0) { $f3->set('SESSION.expiration', time() + $f3->get('TIMEOUT')); + $f3->set('SESSION.access', 'admin'); $f3->reroute('/'); } }