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:
parent
b0f954c55d
commit
aea45ee123
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue