fixed Pointless to set session.flash before session.renew, thanks nursix
This commit is contained in:
@@ -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
@@ -2414,9 +2414,9 @@ class Auth(object):
|
|||||||
next = cas.logout_url(next)
|
next = cas.logout_url(next)
|
||||||
|
|
||||||
current.session.auth = None
|
current.session.auth = None
|
||||||
current.session.flash = self.messages.logged_out
|
|
||||||
if self.settings.renew_session_onlogout:
|
if self.settings.renew_session_onlogout:
|
||||||
current.session.renew(clear_session=not self.settings.keep_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:
|
if not next is None:
|
||||||
redirect(next)
|
redirect(next)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user