From 4089cf21459e0e385fde0845e7f341fec4a73880 Mon Sep 17 00:00:00 2001 From: Massimo Date: Tue, 7 May 2013 15:46:23 -0500 Subject: [PATCH] Issue 1480:Patch for /gluon/tools.py, thanks Jesus Alvaro --- VERSION | 2 +- gluon/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 1e691388..89b8851c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.05.06.22.48.04 +Version 2.4.6-stable+timestamp.2013.05.07.15.45.02 diff --git a/gluon/tools.py b/gluon/tools.py index 0e4ce10e..9121d0a7 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -1753,7 +1753,7 @@ class Auth(object): if 'registration_id' in checks \ and user \ and user.registration_id \ - and user.registration_id != keys.get('registration_id', None): + and ('registration_id' not in keys or user.registration_id != str(keys['registration_id'])): user = None # THINK MORE ABOUT THIS? DO WE TRUST OPENID PROVIDER? if user: update_keys = dict(registration_id=keys['registration_id'])