mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
remove invitation code
This commit is contained in:
parent
bf5596b201
commit
e2ae5d6b8e
1 changed files with 6 additions and 5 deletions
|
|
@ -501,12 +501,13 @@ if (Meteor.isServer) {
|
|||
} else {
|
||||
user.profile = {icode: options.profile.invitationcode};
|
||||
user.profile.boardView = 'board-view-lists';
|
||||
|
||||
// Deletes the invitation code after the user was created successfully.
|
||||
setTimeout(Meteor.bindEnvironment(() => {
|
||||
InvitationCodes.remove({'_id': invitationCode._id});
|
||||
}), 200);
|
||||
return user;
|
||||
}
|
||||
|
||||
// Deletes the invitation.
|
||||
InvitationCodes.remove(invitationCode._id);
|
||||
|
||||
return user;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue