fix: user check on login with OAuth (#31362)

Co-authored-by: Diego Sampaio <chinello@gmail.com>
pull/31528/head^2
Rafael Tapia 2 years ago committed by GitHub
parent 9ff48f17ce
commit e0982dc056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/meteor/server/configuration/accounts_meld.js

@ -25,7 +25,7 @@ export async function configureAccounts() {
if (serviceData.email) {
const user = await Users.findOneByEmailAddress(serviceData.email);
if (user != null) {
if (user != null && user.services?.[serviceName]?.id !== serviceData.id) {
const findQuery = {
address: serviceData.email,
verified: true,

Loading…
Cancel
Save