From 60d40935d5ec5834d9453c200f2aadca8fc6652f Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Thu, 24 Apr 2025 17:25:27 +0800 Subject: [PATCH] Update dashboard.py --- src/dashboard.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index 91d9444..0873756 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1758,7 +1758,11 @@ class DashboardConfig: open(DASHBOARD_CONF, "x") self.__config = configparser.ConfigParser(strict=False) self.__config.read_file(open(DASHBOARD_CONF, "r+")) - self.hiddenAttribute = ["totp_key", "auth_req"] + self.hiddenAttribute = [ + "totp_key", "auth_req", "wg_conf_path", "awg_conf_path", + "app_prefix", "app_ip", "app_port", "auth_req", "version", + "welcome_session", "username", "password", "enable_totp", "totp_verified" + ] self.__default = { "Account": { "username": "admin", @@ -1876,7 +1880,7 @@ class DashboardConfig: def __checkPassword(self, plainTextPassword: str, hashedPassword: bytes): return bcrypt.checkpw(plainTextPassword.encode("utf-8"), hashedPassword) - def SetConfig(self, section: str, key: str, value: any, init: bool = False) -> [bool, str]: + def SetConfig(self, section: str, key: str, value: any, init: bool = False) -> [bool, str]: if key in self.hiddenAttribute and not init: return False, None