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'])