redirect to auth_logout if no post logout redirect URI is found

This commit is contained in:
Benjamin Dauvergne 2017-07-11 16:45:25 +02:00
parent 4e09a681ce
commit fb59436835
1 changed files with 1 additions and 1 deletions

View File

@ -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()