summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAllemand <37148072+salleman33@users.noreply.github.com>2020-06-17 18:44:12 +0200
committerGitHub <noreply@github.com>2020-06-17 18:44:12 +0200
commitf6c377eb9f3f7e62911cadbd0ac8745b537d3f97 (patch)
tree6a28f58832cfb664904773fb227cbce826b10558 /models
parent6d063a4f64bbe133cb182fdd9d2d97defc60a8fd (diff)
downloadwekan-f6c377eb9f3f7e62911cadbd0ac8745b537d3f97.tar.gz
wekan-f6c377eb9f3f7e62911cadbd0ac8745b537d3f97.tar.bz2
wekan-f6c377eb9f3f7e62911cadbd0ac8745b537d3f97.zip
update onCreateUser for oidc
correct bug : remove the wrong user !
Diffstat (limited to 'models')
-rw-r--r--models/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js
index a1928f97..7f234a54 100644
--- a/models/users.js
+++ b/models/users.js
@@ -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;
}