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:
parent
43effd0c32
commit
488c2f5df5
11
email.go
11
email.go
@ -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"}
|
||||||
|
@ -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…
Reference in New Issue
Block a user