From d6c663f79d76b4f4021f64e7f0670e26e3e3e2e4 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 30 May 2025 10:09:09 +0800 Subject: [PATCH] fix: do not display change password dialog in demo mode --- astrbot/dashboard/routes/auth.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/astrbot/dashboard/routes/auth.py b/astrbot/dashboard/routes/auth.py index 896bea4e7..5ce578305 100644 --- a/astrbot/dashboard/routes/auth.py +++ b/astrbot/dashboard/routes/auth.py @@ -21,7 +21,11 @@ class AuthRoute(Route): post_data = await request.json if post_data["username"] == username and post_data["password"] == password: change_pwd_hint = False - if username == "astrbot" and password == "77b90590a8945a7d36c963981a307dc9": + if ( + username == "astrbot" + and password == "77b90590a8945a7d36c963981a307dc9" + and not DEMO_MODE + ): change_pwd_hint = True logger.warning("为了保证安全,请尽快修改默认密码。")