mirror of
https://github.com/solero/houdini.git
synced 2024-12-22 05:23:39 +00:00
Add login key to cache after world login (#93)
* Add login key to cache after world login * Set expiration time for login key
This commit is contained in:
parent
2af6216cbb
commit
2c4d2a87a3
@ -62,6 +62,10 @@ async def handle_login(p, credentials: WorldCredentials):
|
||||
data = await Penguin.get(credentials.id)
|
||||
|
||||
p.login_key = login_key
|
||||
|
||||
# Store login key in redis for use in other services
|
||||
await p.server.redis.setex(f'{data.username}.loginkey', 60 * 60 * 12, login_key)
|
||||
|
||||
await world_login(p, data)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user