mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
locale: Don't remove language preference on logout
When a logged-in user is logs out, keep the language preference of the user who was just logged in. This is Django behavior, don't overwrite it. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
90932e78af
commit
cfec96a9c7
@ -111,11 +111,6 @@ class SSOLogoutView(LogoutView):
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
response = super(SSOLogoutView, self).dispatch(request, *args,
|
||||
**kwargs)
|
||||
try:
|
||||
del request.session[translation.LANGUAGE_SESSION_KEY]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
response.delete_cookie(SSO_COOKIE_NAME)
|
||||
return response
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user