Remember to enable SMTP after configuring it (#882)

This commit is contained in:
Mike Arpaia 2017-01-10 19:51:40 -07:00 committed by GitHub
parent 5eb926c891
commit 2371f58705

View file

@ -74,7 +74,8 @@ func (svc service) ModifyAppConfig(ctx context.Context, p kolide.AppConfigPayloa
message: err.Error(),
}
}
newConfig.SMTPConfigured = (err == nil)
newConfig.SMTPConfigured = true
newConfig.SMTPEnabled = true
// if testing is indicated we don't persist anything, otherwise
// email is marked as unconfigured