From 7c28d427199a5d2129c129be8f3260cb6bd9f7b0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 21 Oct 2009 16:01:59 +0000 Subject: Handle no old cookie case. --- repoze/bfg/authentication.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'repoze') diff --git a/repoze/bfg/authentication.py b/repoze/bfg/authentication.py index 144e1bf39..5fa653a74 100644 --- a/repoze/bfg/authentication.py +++ b/repoze/bfg/authentication.py @@ -347,6 +347,8 @@ class AuthTktCookieHelper(object): timestamp, old_userid, old_tokens, old_userdata = None, '', '', '' + expired = False + if old_cookie_value: try: (timestamp,old_userid,old_tokens, -- cgit v1.2.3