diff options
author | Allemand <37148072+salleman33@users.noreply.github.com> | 2020-06-17 18:44:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 18:44:12 +0200 |
commit | f6c377eb9f3f7e62911cadbd0ac8745b537d3f97 (patch) | |
tree | 6a28f58832cfb664904773fb227cbce826b10558 | |
parent | 6d063a4f64bbe133cb182fdd9d2d97defc60a8fd (diff) | |
download | wekan-f6c377eb9f3f7e62911cadbd0ac8745b537d3f97.tar.gz wekan-f6c377eb9f3f7e62911cadbd0ac8745b537d3f97.tar.bz2 wekan-f6c377eb9f3f7e62911cadbd0ac8745b537d3f97.zip |
update onCreateUser for oidc
correct bug : remove the wrong user !
-rw-r--r-- | models/users.js | 2 |
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; } |