mirror of
https://github.com/openziti/zrok.git
synced 2025-08-18 03:39:58 +02:00
tweaks, improvements, and minor fixes to limits infrastructure as a result of share limit testing (#276)
This commit is contained in:
committed by
Kenneth Bingham
parent
49e936caf7
commit
32a53df58c
@@ -1,6 +1,7 @@
|
||||
package limits
|
||||
|
||||
import (
|
||||
"github.com/openziti/zrok/build"
|
||||
"github.com/openziti/zrok/controller/emailUi"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -11,13 +12,14 @@ func sendLimitWarningEmail(cfg *emailUi.Config, emailTo string, limit *Bandwidth
|
||||
emailData := &emailUi.WarningEmail{
|
||||
EmailAddress: emailTo,
|
||||
Detail: describeLimit(limit, rxBytes, txBytes),
|
||||
Version: build.String(),
|
||||
}
|
||||
|
||||
plainBody, err := emailData.MergeTemplate("limitWarning.gotext")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
htmlBody, err := emailData.MergeTemplate("resetPassword.gohtml")
|
||||
htmlBody, err := emailData.MergeTemplate("limitWarning.gohtml")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user