patch related to registation_id, thanks Nik

This commit is contained in:
Massimo Di Pierro
2012-02-04 10:07:42 -06:00
parent 3bccc8a8d6
commit 932e9abc74
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2012-02-04 09:51:12) stable
Version 1.99.4 (2012-02-04 10:07:28) stable
+1 -1
View File
@@ -1470,7 +1470,7 @@ class Auth(object):
checks.append(fieldname)
user = user or table_user(**{fieldname:keys[fieldname]})
# if we think we found the user but registration_id does not match, make new user
if user and user.registration_id and user.registration_id!=keys.get('registration_id',None):
if 'registration_id' in checks and user and user.registration_id and user.registration_id!=keys.get('registration_id',None):
user = None # THINK MORE ABOUT THIS? DO WE TRUST OPENID PROVIDER?
keys['registration_key']=''
if user: