mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
Update users.js
issue #3099 : we have to delete the existing user, Account Service create it again
This commit is contained in:
parent
eb4219504d
commit
c5e0832e00
1 changed files with 2 additions and 1 deletions
|
@ -946,7 +946,8 @@ 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 });
|
||||
Meteor.users.remove({ _id: existingUser._id }); // is going to be created again
|
||||
return existingUser;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue