aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-04-03 18:23:40 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-04-03 18:23:40 -0500
commitb97232fa2f8f5fbf5c1999c348a3cae66acf4834 (patch)
tree4181a4aa85b718a731e8cff4bea1028798ed0b97
parenta37767172b7c67dbc35211c9d57dc69d1b1c783f (diff)
downloadmediagoblin-b97232fa2f8f5fbf5c1999c348a3cae66acf4834.tar.lz
mediagoblin-b97232fa2f8f5fbf5c1999c348a3cae66acf4834.tar.xz
mediagoblin-b97232fa2f8f5fbf5c1999c348a3cae66acf4834.zip
Working logout function
-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"))