fix broken url in welcome email

pull/97/head
Harvey Tindall 4 years ago
parent 43effd0c32
commit 488c2f5df5
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -658,6 +658,7 @@ func (emailer *Emailer) welcomeValues(username string, expiry time.Time, app *ap
"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"}

@ -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>

Loading…
Cancel
Save