summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go1
-rw-r--r--utils/html.go4
2 files changed, 3 insertions, 2 deletions
diff --git a/utils/config.go b/utils/config.go
index 06d0dc440..c97d465f1 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -238,6 +238,7 @@ func getClientConfig(c *model.Config) map[string]string {
props["EnableSignInWithEmail"] = strconv.FormatBool(*c.EmailSettings.EnableSignInWithEmail)
props["EnableSignInWithUsername"] = strconv.FormatBool(*c.EmailSettings.EnableSignInWithUsername)
props["RequireEmailVerification"] = strconv.FormatBool(c.EmailSettings.RequireEmailVerification)
+ props["EnableEmailBatching"] = strconv.FormatBool(*c.EmailSettings.EnableEmailBatching)
props["EnableSignUpWithGitLab"] = strconv.FormatBool(c.GitLabSettings.Enable)
diff --git a/utils/html.go b/utils/html.go
index 1df336c52..05f36eb2c 100644
--- a/utils/html.go
+++ b/utils/html.go
@@ -18,7 +18,7 @@ var htmlTemplates *template.Template
type HTMLTemplate struct {
TemplateName string
- Props map[string]string
+ Props map[string]interface{}
Html map[string]template.HTML
Locale string
}
@@ -71,7 +71,7 @@ func InitHTMLWithDir(dir string) {
func NewHTMLTemplate(templateName string, locale string) *HTMLTemplate {
return &HTMLTemplate{
TemplateName: templateName,
- Props: make(map[string]string),
+ Props: make(map[string]interface{}),
Html: make(map[string]template.HTML),
Locale: locale,
}