Skip to content

Commit

Permalink
Merge pull request #646 from strapi/fix-auth-provider
Browse files Browse the repository at this point in the history
Hot fix provider login
  • Loading branch information
lauriejim committed Feb 15, 2018
2 parents cba7311 + 00230f0 commit 332db3f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ exports.connect = (provider, query) => {
return resolve([null, [{ messages: [{ id: 'Auth.advanced.allow_register' }] }], 'Register action is actualy not available.']);
}

if (!_.isEmpty(_.find(users, {provider}))) {
const user = _.find(users, {provider});

if (!_.isEmpty(user)) {
return resolve([user, null]);
}

Expand Down

0 comments on commit 332db3f

Please sign in to comment.