summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorMarc Hartmayer <hello@hartmayer.com>2020-05-29 13:35:29 +0200
committerMarc Hartmayer <hello@hartmayer.com>2020-05-29 13:35:29 +0200
commitafcb8aa49b254fc686f55c5f094b5ee2ac50ebf9 (patch)
tree6ea454d415af7fc8f49c4e34a143fa13f445c8fd /models
parenta47ca598e750eab86bc5d5648b50dc029428ca11 (diff)
downloadwekan-afcb8aa49b254fc686f55c5f094b5ee2ac50ebf9.tar.gz
wekan-afcb8aa49b254fc686f55c5f094b5ee2ac50ebf9.tar.bz2
wekan-afcb8aa49b254fc686f55c5f094b5ee2ac50ebf9.zip
Fix email verification in `sendSMTPTestEmail`
Fixes: 6e088af3
Diffstat (limited to 'models')
-rw-r--r--models/settings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/settings.js b/models/settings.js
index b665642e..90c231b7 100644
--- a/models/settings.js
+++ b/models/settings.js
@@ -259,7 +259,7 @@ if (Meteor.isServer) {
throw new Meteor.Error('invalid-user');
}
const user = Meteor.user();
- if (!user.emails || !user.emails[0] || user.emails[0].address) {
+ if (!user.emails || !user.emails[0] || !user.emails[0].address) {
throw new Meteor.Error('email-invalid');
}
this.unblock();