Permalink
Browse files

Fix logout confirmation view.

  • Loading branch information...
1 parent cb8be2e commit b1a304b6ea68f172e839e8ae089ce571dfdde362 @tseaver tseaver committed Nov 7, 2011
Showing with 5 additions and 2 deletions.
  1. +4 −1 cartouche/login.py
  2. +1 −1 cartouche/templates/logout.pt
View
@@ -96,7 +96,10 @@ def logout_view(context, request):
after_logout_url = view_url(context, request, 'after_logout_url', '')
return HTTPFound(location=after_logout_url, headers=headers)
identity = request.environ.get('repoze.who.identity', {})
- return {'userid': identity.get('repoze.who.userid')}
+ main_template = get_renderer('templates/main.pt')
+ return {'userid': identity.get('repoze.who.userid'),
+ 'main_template': main_template.implementation(),
+ }
RECOVERY_EMAIL = """
@@ -6,7 +6,7 @@
to log out?</p>
<form action="#" method="POST">
- <input type="logout" value="Confirm" />
+ <input type="submit" name="logout" value="Confirm" />
</form>
</metal:slot>
</metal:body>

0 comments on commit b1a304b

Please sign in to comment.