Commit 86e78318 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_oauth_google_login: Set Google ID as user_id in Person, otherwise ERP5...

erp5_oauth_google_login: Set Google ID as user_id in Person, otherwise ERP5 will not find the Person to authenticate
parent 7f3db07a
......@@ -20,7 +20,7 @@ assert login_portal_type in ("Google Login",), "Impossible to select a portal ty
if erp5_username in ("Anonymous User", None):
person = portal.person_module.newContent(portal_type='Person',
reference=reference,
user_id=reference,
first_name=first_name,
last_name=last_name,
default_email_coordinate_text=email,
......
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