Mercurial > hg > bitsyauth
changeset 42:871c040668c0
unused
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 28 Dec 2013 13:10:56 -0800 |
parents | d4522af2c6e5 |
children | 0aa08d20fc7d |
files | bitsyauth/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/bitsyauth/__init__.py Sat Dec 28 12:56:06 2013 -0800 +++ b/bitsyauth/__init__.py Sat Dec 28 13:10:56 2013 -0800 @@ -345,8 +345,6 @@ self.cookie = '__ac' auth = BitsyAuthInnerWare(app, passwords=passwords, newuser=newuser, site=site) self.hash = auth.hash - # paste.auth.cookie - # self.cookie_handler = cookie.middleware(auth, cookie_name=self.cookie, timeout=90) # minutes # paste.auth.auth_tkt self.cookie_handler = auth_tkt.make_auth_tkt_middleware( @@ -354,8 +352,7 @@ cookie_name=self.cookie, logout_path='/logout') def __call__(self, environ, start_response): - if environ['PATH_INFO'] == '/logout': - pass # XXX unused + try: return self.cookie_handler(environ, start_response) except auth_tkt.BadTicket: