mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
update onCreateUser for oidc
correct bug : remove the wrong user !
This commit is contained in:
parent
6d063a4f64
commit
f6c377eb9f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue