Commit baf55c7f authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5Security: GoogleLogin some properties don't always come

parent 9fc00b3b
...@@ -81,7 +81,7 @@ def getGoogleUserEntry(token): ...@@ -81,7 +81,7 @@ def getGoogleUserEntry(token):
('last_name', 'family_name'), ('last_name', 'family_name'),
('email', 'email'), ('email', 'email'),
('reference', 'email'),): ('reference', 'email'),):
value = google_entry[k[1]].encode('utf-8') value = google_entry.get(k[1], '').encode('utf-8')
user_entry[k[0]] = value user_entry[k[0]] = value
return user_entry return user_entry
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment