aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/auth/views.py')
-rw-r--r--mediagoblin/auth/views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py
index 16588a5b..71c2d7a9 100644
--- a/mediagoblin/auth/views.py
+++ b/mediagoblin/auth/views.py
@@ -112,8 +112,8 @@ def login(request):
def logout(request):
- template = request.template_env.get_template(
- 'mediagoblin/auth/logout.html')
- return Response(
- template.render(
- {'request': request}))
+ # Maybe deleting the user_id parameter would be enough?
+ request.session.delete()
+
+ return exc.HTTPFound(
+ location=request.urlgen("index"))