Fixed full logout after loginAs
This commit is contained in:
parent
59c2a7d926
commit
aed8bf41b7
2
app.py
2
app.py
|
@ -183,6 +183,8 @@ async def logour(request):
|
||||||
r.cookies['foxo_secret'] = orgSecret
|
r.cookies['foxo_secret'] = orgSecret
|
||||||
r.delete_cookie("foxo_code_ORG")
|
r.delete_cookie("foxo_code_ORG")
|
||||||
r.delete_cookie("foxo_secret_ORG")
|
r.delete_cookie("foxo_secret_ORG")
|
||||||
|
del r.cookies['foxo_code_ORG']
|
||||||
|
del r.cookies['foxo_secret_ORG']
|
||||||
return r
|
return r
|
||||||
|
|
||||||
raise exceptions.Forbidden("You have been logged out.")
|
raise exceptions.Forbidden("You have been logged out.")
|
||||||
|
|
Loading…
Reference in New Issue