Issue 1480:Patch for /gluon/tools.py, thanks Jesus Alvaro

This commit is contained in:
Massimo
2013-05-07 15:46:23 -05:00
parent cdd3f6ed00
commit 4089cf2145
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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'])