update onCreateUser for oidc

correct bug : remove the wrong user !
This commit is contained in:
Allemand 2020-06-17 18:44:12 +02:00 committed by GitHub
parent 6d063a4f64
commit f6c377eb9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -946,7 +946,7 @@ if (Meteor.isServer) {
existingUser.profile = user.profile;
existingUser.authenticationMethod = user.authenticationMethod;
Meteor.users.remove({ _id: existingUser._id }); // remove existing record
Meteor.users.remove({ _id: user._id }); // remove existing record
return existingUser;
}