From 7bc603f38053ec80cbce9f25c4413aae550c7b4f Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 13 Sep 2013 15:41:58 -0500 Subject: [PATCH] fixed Pointless to set session.flash before session.renew, thanks nursix --- VERSION | 2 +- gluon/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c89eb433..5d6f4f75 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/tools.py b/gluon/tools.py index da913ed3..13e5a9c8 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -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)