Fix logout in some cases
This commit is contained in:
parent
654dc2c70d
commit
6139f49aae
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ async def login_for_access_token(
|
|||
@api.get('/logout')
|
||||
async def logout(
|
||||
user: Annotated[UserRead, Depends(get_current_active_user)]):
|
||||
if user is not None:
|
||||
logger.info(f'{user.username} ({user.id}) logged out')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue