fix(token): If the "username" is provided, then use "username" as the username.

This commit is contained in:
Timebomb2018
2026-02-25 16:57:00 +08:00
parent b8ea427029
commit bd037ac3a3
3 changed files with 7 additions and 3 deletions

View File

@@ -61,6 +61,7 @@ async def login_for_access_token(
user = auth_service.register_user_with_invite(
db=db,
email=form_data.email,
username=form_data.username,
password=form_data.password,
invite_token=form_data.invite,
workspace_id=invite_info.workspace_id