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