diff options
author | lkisme <lkisme@me.com> | 2017-03-28 00:48:18 +0800 |
---|---|---|
committer | lkisme <lkisme@me.com> | 2017-03-28 00:48:18 +0800 |
commit | f82941550ac469554bc97ea9e1f4c49c6e0ddf27 (patch) | |
tree | 4de0a9727ed80d95a770d55c6c56a01f340b9a24 /client/components | |
parent | feafc46bb5bc336da8d091cc7a0e8e4fc3c3e4f1 (diff) | |
download | wekan-f82941550ac469554bc97ea9e1f4c49c6e0ddf27.tar.gz wekan-f82941550ac469554bc97ea9e1f4c49c6e0ddf27.tar.bz2 wekan-f82941550ac469554bc97ea9e1f4c49c6e0ddf27.zip |
Remove invitation code if email sending failed, improve registration process with invitation
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/settings/invitationCode.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/settings/invitationCode.js b/client/components/settings/invitationCode.js index e712c89a..a403d8ab 100644 --- a/client/components/settings/invitationCode.js +++ b/client/components/settings/invitationCode.js @@ -1,6 +1,6 @@ Template.invitationCode.onRendered(() => { - const disableRegistration = Settings.findOne().disableRegistration; - if(!disableRegistration){ + const setting = Settings.findOne(); + if (!setting || !setting.disableRegistration) { $('#invitationcode').hide(); } }); |