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('/'); } }