Skip to content

Commit fbc8667

Browse files
committed
fix: simplify error messages for account edit validation
1 parent cda49c3 commit fbc8667

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

astrbot/dashboard/routes/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ async def edit_account(self):
6565
new_username = post_data.get("new_username", None)
6666
if not new_pwd and not new_username:
6767
return (
68-
Response().error("新用户名和新密码不能同时为空,你改了个寂寞").__dict__
68+
Response().error("新用户名和新密码不能同时为空").__dict__
6969
)
7070

7171
# Verify password confirmation
7272
if new_pwd:
7373
confirm_pwd = post_data.get("confirm_password", None)
7474
if confirm_pwd != new_pwd:
75-
return Response().error("两次输入的新密码不一致,健忘症患者?").__dict__
75+
return Response().error("两次输入的新密码不一致").__dict__
7676
self.config["dashboard"]["password"] = new_pwd
7777
if new_username:
7878
self.config["dashboard"]["username"] = new_username

0 commit comments

Comments
 (0)