1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

fix broken url in welcome email

This commit is contained in:
Harvey Tindall 2021-05-02 14:44:19 +01:00
parent 43effd0c32
commit 488c2f5df5
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 7 additions and 6 deletions

View File

@ -653,11 +653,12 @@ func (emailer *Emailer) constructEnabled(reason string, app *appContext, noSub b
func (emailer *Emailer) welcomeValues(username string, expiry time.Time, app *appContext, noSub bool, custom bool) map[string]interface{} { func (emailer *Emailer) welcomeValues(username string, expiry time.Time, app *appContext, noSub bool, custom bool) map[string]interface{} {
template := map[string]interface{}{ template := map[string]interface{}{
"welcome": emailer.lang.WelcomeEmail.get("welcome"), "welcome": emailer.lang.WelcomeEmail.get("welcome"),
"youCanLoginWith": emailer.lang.WelcomeEmail.get("youCanLoginWith"), "youCanLoginWith": emailer.lang.WelcomeEmail.get("youCanLoginWith"),
"jellyfinURLString": emailer.lang.WelcomeEmail.get("jellyfinURL"), "jellyfinURLString": emailer.lang.WelcomeEmail.get("jellyfinURL"),
"usernameString": emailer.lang.Strings.get("username"), "usernameString": emailer.lang.Strings.get("username"),
"message": "", "message": "",
"yourAccountWillExpire": "",
} }
if noSub { if noSub {
empty := []string{"jellyfinURL", "username", "yourAccountWillExpire"} empty := []string{"jellyfinURL", "username", "yourAccountWillExpire"}

View File

@ -62,7 +62,7 @@
<mj-text mj-class="text" font-size="16px" font-family="Noto Sans, Helvetica, Arial, sans-serif"> <mj-text mj-class="text" font-size="16px" font-family="Noto Sans, Helvetica, Arial, sans-serif">
<h3>{{ .welcome }}</h3> <h3>{{ .welcome }}</h3>
<p>{{ .youCanLoginWith }}:</p> <p>{{ .youCanLoginWith }}:</p>
{{ .jellyfinURLString }}: <a href="{{ .jellyfinURLVal }}">{{ .jellyfinURL }}</a> {{ .jellyfinURLString }}: <a href="{{ .jellyfinURL }}">{{ .jellyfinURL }}</a>
<p>{{ .usernameString }}: <i>{{ .username }}</i></p> <p>{{ .usernameString }}: <i>{{ .username }}</i></p>
<p>{{ .yourAccountWillExpire }}</p> <p>{{ .yourAccountWillExpire }}</p>
</mj-text> </mj-text>