summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2017-12-05 13:29:06 +0100
committerRomain Derie <rde@odoo.com>2017-12-05 13:29:06 +0100
commitce038f5d1531107a1e45fd867de42e82940babdb (patch)
tree68fe82b3b111472e7b768f4be76431619011b3fb /addons
parentb2f0af4543293350365a43893f9184e0a8669b48 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/auth_oauth/auth_oauth_data.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_oauth/auth_oauth_data.xml b/addons/auth_oauth/auth_oauth_data.xml
index 3b71b56be1f..7fc4633cc0a 100644
--- a/addons/auth_oauth/auth_oauth_data.xml
+++ b/addons/auth_oauth/auth_oauth_data.xml
@@ -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>