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

ERP5Security: GoogleLogin some properties don't always come

See merge request nexedi/erp5!1176
parents b72eff1a 84396be0
Pipeline #10270 failed with stage
in 0 seconds
...@@ -82,7 +82,7 @@ def getGoogleUserEntry(token): ...@@ -82,7 +82,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