mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
Upgrade aioredis to 2.0
This commit is contained in:
@@ -104,7 +104,7 @@ class UsernamePasswordProvider(Provider):
|
||||
path=request.app.admin_path,
|
||||
httponly=True,
|
||||
)
|
||||
await redis.set(constants.LOGIN_USER.format(token=token), admin.pk, expire=expire)
|
||||
await redis.set(constants.LOGIN_USER.format(token=token), admin.pk, ex=expire)
|
||||
return response
|
||||
|
||||
async def logout(self, request: Request):
|
||||
|
||||
Reference in New Issue
Block a user