Fixed full logout after loginAs

This commit is contained in:
Stranck 2024-01-13 23:39:15 +01:00
parent 59c2a7d926
commit aed8bf41b7
1 changed files with 2 additions and 0 deletions

2
app.py
View File

@ -183,6 +183,8 @@ async def logour(request):
r.cookies['foxo_secret'] = orgSecret
r.delete_cookie("foxo_code_ORG")
r.delete_cookie("foxo_secret_ORG")
del r.cookies['foxo_code_ORG']
del r.cookies['foxo_secret_ORG']
return r
raise exceptions.Forbidden("You have been logged out.")