Commit 712d7cf8 authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5Security: GoogleLogin some properties don't always come

See merge request !1176
parents b72eff1a 84396be0
......@@ -82,7 +82,7 @@ def getGoogleUserEntry(token):
('last_name', 'family_name'),
('email', '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
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