diff --git a/astrbot/dashboard/routes/auth.py b/astrbot/dashboard/routes/auth.py index 5cca8d2da..40db1f60b 100644 --- a/astrbot/dashboard/routes/auth.py +++ b/astrbot/dashboard/routes/auth.py @@ -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: