mirror of
https://github.com/solero/houdini.git
synced 2026-04-03 14:26:59 +00:00
Change login data retrieval to use username (#112)
This commit is contained in:
@@ -59,7 +59,7 @@ async def handle_login(p, credentials: WorldCredentials):
|
||||
if login_key != credentials.login_key or confirmation_hash.decode() != credentials.confirmation_hash:
|
||||
return await p.close()
|
||||
|
||||
data = await Penguin.get(credentials.id)
|
||||
data = await Penguin.query.where(Penguin.username == credentials.username).gino.first()
|
||||
|
||||
p.login_key = login_key
|
||||
|
||||
|
||||
Reference in New Issue
Block a user