We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda49c3 commit fbc8667Copy full SHA for fbc8667
1 file changed
astrbot/dashboard/routes/auth.py
@@ -65,14 +65,14 @@ async def edit_account(self):
65
new_username = post_data.get("new_username", None)
66
if not new_pwd and not new_username:
67
return (
68
- Response().error("新用户名和新密码不能同时为空,你改了个寂寞").__dict__
+ Response().error("新用户名和新密码不能同时为空").__dict__
69
)
70
71
# Verify password confirmation
72
if new_pwd:
73
confirm_pwd = post_data.get("confirm_password", None)
74
if confirm_pwd != new_pwd:
75
- return Response().error("两次输入的新密码不一致,健忘症患者?").__dict__
+ return Response().error("两次输入的新密码不一致").__dict__
76
self.config["dashboard"]["password"] = new_pwd
77
if new_username:
78
self.config["dashboard"]["username"] = new_username
0 commit comments