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
+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,