From b6fc2682971f3adf1dab44bcd15688efe484150e Mon Sep 17 00:00:00 2001 From: Paolo Ragone Date: Fri, 11 Jan 2019 22:52:28 +1300 Subject: [PATCH] Fixed bug following recommendation --- .../services/Providers.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/strapi-plugin-users-permissions/services/Providers.js b/packages/strapi-plugin-users-permissions/services/Providers.js index a281b8b4d7..34291a4f38 100644 --- a/packages/strapi-plugin-users-permissions/services/Providers.js +++ b/packages/strapi-plugin-users-permissions/services/Providers.js @@ -45,14 +45,9 @@ exports.connect = (provider, query) => { } try { - const users = await strapi.query('user', 'users-permissions').find({ - where: { - email: { - symbol: '=', - value: profile.email - } - } - }); + const users = await strapi.query('user', 'users-permissions').find(strapi.utils.models.convertParams('user', { + email: profile.email + })); const advanced = await strapi.store({ environment: '',