fix: change_password api

This commit is contained in:
Soulter
2024-09-17 03:33:18 -04:00
parent 7dd29c707f
commit 7e9f54ed2c
+1 -1
View File
@@ -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="修改成功。",