From 20fdb688ad559407b5c7919b32ea17c2bfe02242 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 21 May 2024 09:03:22 +0700 Subject: [PATCH] fix init radius, double check password --- init.php | 3 +++ system/lan/english.json | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/init.php b/init.php index 76c9cd27..1bcd73f8 100644 --- a/init.php +++ b/init.php @@ -110,6 +110,9 @@ if (empty($http_proxy) && !empty($config['http_proxy'])) { date_default_timezone_set($config['timezone']); if ((!empty($radius_user) && $config['radius_enable']) || _post('radius_enable')) { + if(!empty($radius_password)){ + $radius_pass = $radius_password; + } ORM::configure("mysql:host=$radius_host;dbname=$radius_name", null, 'radius'); ORM::configure('username', $radius_user, 'radius'); ORM::configure('password', $radius_pass, 'radius'); diff --git a/system/lan/english.json b/system/lan/english.json index d11024ab..d02a0c8f 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -592,5 +592,7 @@ "Created_Date": "Created Date", "Inactive": "Inactive", "Suspended": "Suspended", - "Query": "Query" + "Query": "Query", + "Notes": "Notes", + "This_account_status": "This account status" } \ No newline at end of file