Fix email verification in sendSMTPTestEmail

Fixes: 6e088af3
This commit is contained in:
Marc Hartmayer 2020-05-29 13:35:29 +02:00
parent a47ca598e7
commit afcb8aa49b

View file

@ -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();