[FIX] auth_oauth: correctly retrieve user facebook email
Before this commit, you could never get the user's facebook email. Since there was no email field on facebook response, email would be then set to an auto generated value like 'provider_2_user_0123456789123456' by odoo. Now, we correctly request user's email to facebook. opw-782771
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<field name="auth_endpoint">https://www.facebook.com/dialog/oauth</field>
|
||||
<field name="scope">public_profile,email</field>
|
||||
<field name="validation_endpoint">https://graph.facebook.com/me</field>
|
||||
<field name="data_endpoint"></field>
|
||||
<field name="data_endpoint">https://graph.facebook.com/me?fields=id,name,email</field>
|
||||
<field name="css_class">fa fa-facebook-square</field>
|
||||
<field name="body">Log in with facebook</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user