redirect to auth_logout if no post logout redirect URI is found
This commit is contained in:
parent
4e09a681ce
commit
fb59436835
|
@ -485,7 +485,7 @@ class LogoutReturnView(View):
|
|||
if states and state in states:
|
||||
next_url = states[state].get('next')
|
||||
if not next_url:
|
||||
next_url = settings.LOGIN_REDIRECT_URL
|
||||
next_url = reverse('auth_logout')
|
||||
return HttpResponseRedirect(next_url)
|
||||
|
||||
logout = LogoutReturnView.as_view()
|
||||
|
|
Loading…
Reference in New Issue