mirror of
				https://github.com/solero/houdini.git
				synced 2025-11-04 06:31:54 +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:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user