Skip to content

Commit

Permalink
[FIX] User is prompted to reset their password when logging in with O…
Browse files Browse the repository at this point in the history
…Auth provider (#18001)
  • Loading branch information
pierre-lehnen-rc authored Jun 22, 2020
1 parent e8a43e9 commit 2dde4fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/configuration/accounts_meld.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import _ from 'underscore';
import { Accounts } from 'meteor/accounts-base';

import { settings } from '../../app/settings/server';
import { Users } from '../../app/models';

const orig_updateOrCreateUserFromExternalService = Accounts.updateOrCreateUserFromExternalService;
Expand Down Expand Up @@ -37,7 +36,7 @@ Accounts.updateOrCreateUserFromExternalService = function(serviceName, serviceDa
if (user != null) {
const findQuery = {
address: serviceData.email,
verified: settings.get('Accounts_Verify_Email_For_External_Accounts'),
verified: true,
};

if (!_.findWhere(user.emails, findQuery)) {
Expand Down

0 comments on commit 2dde4fd

Please sign in to comment.