summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@supinfo.com>2018-07-16 19:20:47 +0200
committerguillaume <guillaume.cassou@supinfo.com>2018-07-16 19:20:47 +0200
commitdf54f15ecb36e105ad2116443672c99d52569958 (patch)
tree6a0fb272362f366a3bd12ff19fd36c6b0cadb9f8 /models/users.js
parentc0ddecb2eeea3277dcab5a750eac991b7b0945ea (diff)
downloadwekan-df54f15ecb36e105ad2116443672c99d52569958.tar.gz
wekan-df54f15ecb36e105ad2116443672c99d52569958.tar.bz2
wekan-df54f15ecb36e105ad2116443672c99d52569958.zip
patch re-invit
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/users.js b/models/users.js
index 5a7fbbe5..31590cea 100644
--- a/models/users.js
+++ b/models/users.js
@@ -503,6 +503,9 @@ if (Meteor.isServer) {
user.profile.boardView = 'board-view-lists';
}
+ // Deletes the invitation.
+ InvitationCodes.remove(invitationCode._id);
+
return user;
});
}