1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-08-29 01:50:00 +03:00

Improbed session clear on user logout

This commit is contained in:
Adolfo Gómez García
2020-10-29 07:49:43 +01:00
parent 76f4df5aa1
commit 13de581b80

View File

@ -333,7 +333,7 @@ def webLogout(request: HttpRequest, exit_url: typing.Optional[str] = None) -> Ht
else: # No user, redirect to /
return HttpResponseRedirect(reverse('page.login'))
request.session.clear()
request.session.flush()
if exit_url is None:
exit_url = reverse('page.logout')
# exit_url = GlobalConfig.LOGIN_URL.get()