Merge "Restore "redirect to login page after logout" behaviour"

This commit is contained in:
Jenkins 2014-06-21 00:22:13 +00:00 committed by Gerrit Code Review
commit 069295fc59
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def logout(request):
if token and endpoint:
delete_token(endpoint=endpoint, token_id=token.id)
""" Securely logs a user out. """
return django_auth_views.logout(request)
return django_auth_views.logout_then_login(request)
def delete_token(endpoint, token_id):