mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Remove invitation code if email sending failed, improve registration process with invitation
This commit is contained in:
parent
feafc46bb5
commit
f82941550a
4 changed files with 19 additions and 12 deletions
|
|
@ -104,6 +104,7 @@ if (Meteor.isServer) {
|
|||
text: TAPi18n.__('email-invite-register-text', params, lang),
|
||||
});
|
||||
} catch (e) {
|
||||
InvitationCodes.remove(_id);
|
||||
throw new Meteor.Error('email-fail', e.message);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue