From babb8393f633cde5b3d3fb75f79dbc92c8dabe02 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Thu, 23 Apr 2026 12:07:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=BB=98=E8=AE=A4=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20Capacity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index bde6a20..7ee920e 100644 --- a/app/main.py +++ b/app/main.py @@ -33,7 +33,7 @@ def _ensure_auth_ini(): """确保 auth.ini 存在,不存在则创建默认配置""" if not os.path.exists(AUTH_INI_PATH): cfg = configparser.ConfigParser() - cfg["auth"] = {"username": "root", "password": "admin"} + cfg["auth"] = {"username": "root", "password": "Capacity"} with open(AUTH_INI_PATH, "w", encoding="utf-8") as f: cfg.write(f) @@ -44,7 +44,7 @@ def get_auth_config(): cfg.read(AUTH_INI_PATH, encoding="utf-8") return { "username": cfg.get("auth", "username", fallback="root"), - "password": cfg.get("auth", "password", fallback="admin") + "password": cfg.get("auth", "password", fallback="Capacity") } def save_auth_password(new_password: str):