fix: 防止Nakama账号登录时注册新账号

* fix: 防止Nakama账号登录时注册新账号

---------

Merge request URL: https://g-ldyi2063.coding.net/p/dev/d/modalDeploy/git/merge/4866?initial=true
Co-authored-by: shuohigh@gmail.com
This commit is contained in:
肖宇迪 2025-06-24 18:15:29 +08:00 committed by Coding
parent b0f954c55d
commit aea45ee123
1 changed files with 1 additions and 1 deletions

View File

@ -36,6 +36,6 @@ def is_valid_token(token: str) -> bool:
def nakama_login(email: EmailStr, password: str) -> NakamaJWTResponse:
response = httpx.post(url=f"{config.nakama_client_endpoint}/v2/account/authenticate/email",
json={"email": email.__str__(), "password": password, })
json={"email": email.__str__(), "password": password, "create": False})
response.raise_for_status()
return NakamaJWTResponse.model_validate_json(response.text)