do not redirect after auth.logout() if next is None

This commit is contained in:
mdipierro
2012-11-29 09:52:48 -06:00
parent fabc3a5db1
commit 1a2d11560f
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-11-27 11:28:54) stable
Version 2.2.1 (2012-11-29 09:52:05) stable
-2
View File
@@ -150,8 +150,6 @@ class WebClient(object):
match = self.session_regex.match(cookie)
if match:
name = match.group('name')
print repr(cookie)
print name, self.sessions.get(name,None), value
if name in self.sessions and self.sessions[name] != value:
raise RuntimeError('Broken sessions %s' % name)
self.sessions[name] = value
+2 -1
View File
@@ -2142,7 +2142,8 @@ class Auth(object):
current.session.auth = None
current.session.flash = self.messages.logged_out
redirect(next)
if not next is None:
redirect(next)
def register(
self,