From 5bbf9bf09af24f3e5dd2b202f07f060b945310dd Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Sat, 7 Oct 2023 03:16:12 -0700 Subject: [PATCH] check if radius enable inside post --- system/boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/boot.php b/system/boot.php index 17efec9a..353fc16a 100644 --- a/system/boot.php +++ b/system/boot.php @@ -101,7 +101,7 @@ try { $http_proxyauth = $config['http_proxyauth']; } } - if (!empty($radius_user) && $config['radius_enable']) { + if ((!empty($radius_user) && $config['radius_enable']) || _post('radius_enable')) { ORM::configure("mysql:host=$radius_host;dbname=$radius_name", null, 'radius'); ORM::configure('username', $radius_user, 'radius'); ORM::configure('password', $radius_pass, 'radius');