fix: streamline error response for empty new username and password in account edit

This commit is contained in:
Soulter
2026-02-20 18:35:26 +08:00
parent fbc8667968
commit e19a282c59
+1 -3
View File
@@ -64,9 +64,7 @@ class AuthRoute(Route):
new_pwd = post_data.get("new_password", None)
new_username = post_data.get("new_username", None)
if not new_pwd and not new_username:
return (
Response().error("新用户名和新密码不能同时为空").__dict__
)
return Response().error("新用户名和新密码不能同时为空").__dict__
# Verify password confirmation
if new_pwd: