This commit is contained in:
root
2025-07-13 11:23:46 +08:00
parent c6bd87f852
commit d9e0e2e791
2 changed files with 31 additions and 16 deletions

View File

@@ -35,11 +35,12 @@ class AuthAPI:
"""
try:
# 创建注册请求对象
display_name = data.get("display_name", "") or ""
request = RegisterRequest(
username=data.get("username", "").strip(),
email=data.get("email", "").strip(),
password=data.get("password", ""),
display_name=data.get("display_name", "").strip() or None
display_name=display_name.strip() or None
)
# 执行注册