fixed Pointless to set session.flash before session.renew, thanks nursix

This commit is contained in:
mdipierro
2013-09-13 15:41:58 -05:00
parent 6c1cc6fc96
commit 7bc603f380
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.1-stable+timestamp.2013.09.13.15.38.54
Version 2.6.1-stable+timestamp.2013.09.13.15.41.09
+1 -1
View File
@@ -2414,9 +2414,9 @@ class Auth(object):
next = cas.logout_url(next)
current.session.auth = None
current.session.flash = self.messages.logged_out
if self.settings.renew_session_onlogout:
current.session.renew(clear_session=not self.settings.keep_session_onlogout)
current.session.flash = self.messages.logged_out
if not next is None:
redirect(next)