mirror of
https://github.com/openziti/zrok.git
synced 2025-08-14 10:08:26 +02:00
reset password email styling (#157)
This commit is contained in:
@ -3,6 +3,7 @@ package controller
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/openziti/zrok/build"
|
||||
"html/template"
|
||||
|
||||
"github.com/openziti/zrok/controller/emailUi"
|
||||
@ -14,12 +15,14 @@ import (
|
||||
type resetPasswordEmail struct {
|
||||
EmailAddress string
|
||||
Url string
|
||||
Version string
|
||||
}
|
||||
|
||||
func sendResetPasswordEmail(emailAddress, token string) error {
|
||||
emailData := &resetPasswordEmail{
|
||||
EmailAddress: emailAddress,
|
||||
Url: fmt.Sprintf("%s/%s", cfg.ResetPassword.ResetUrlTemplate, token),
|
||||
Version: build.String(),
|
||||
}
|
||||
|
||||
plainBody, err := emailData.mergeTemplate("resetPassword.gotext")
|
||||
|
Reference in New Issue
Block a user