From 7e9f54ed2c6b0bd84a5cc640616076c094ceb8ad Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 17 Sep 2024 03:33:18 -0400 Subject: [PATCH] fix: change_password api --- dashboard/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/server.py b/dashboard/server.py index 87e9d25c4..ee9090668 100644 --- a/dashboard/server.py +++ b/dashboard/server.py @@ -96,7 +96,7 @@ class AstrBotDashBoard(): # 获得请求体 post_data = request.json if post_data["password"] == password: - self.context.config_helper.put("dashboard_password", post_data["new_password"]) + self.context.config_helper.dashboard.password = post_data['new_password'] return Response( status="success", message="修改成功。",