From 6ae47144cd9569dbc7ecb06bb6deffe590ad9a67 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Fri, 16 Dec 2011 10:35:45 -0600 Subject: [PATCH] fixed problem with session._auth_next --- VERSION | 2 +- gluon/tools.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 22cf4c39..f2917afc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2011-12-16 10:16:31) stable +Version 1.99.4 (2011-12-16 10:35:39) stable diff --git a/gluon/tools.py b/gluon/tools.py index ca088729..2981ec6e 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1791,6 +1791,8 @@ class Auth(object): if self.settings.login_form == self: if accepted_form: callback(onaccept,form) + if next == session._auth_next: + session._auth_next = None next = replace_id(next, form) redirect(next) table_user[username].requires = old_requires