diff --git a/data/email-templates/expired-password.html b/data/email-templates/expired-password.html index 660d8dc..2177090 100644 --- a/data/email-templates/expired-password.html +++ b/data/email-templates/expired-password.html @@ -1,25 +1,112 @@ - + - - Hi - + + + - -

Hi {{.Username}}

- Profile Picture + + + + + +
+ + + + + +
+

+ Hi {{.Username}}, +

+ +

+ Your account password has expired and needs + to be updated to continue accessing your + account. +

+ +

+ Expiration Date:
+ {{.ExpiredAt}} +

+ +

+ For security reasons, passwords must be + updated periodically. Please reset your + password as soon as possible. +

+ + + + + + +
+ + Reset Password + +
+ +

+ If you did not expect this, please contact + your system administrator. +

+ +

+ Thanks,
+ {{.ServiceName}} +

+
+
diff --git a/src/email/email.go b/src/email/email.go index c7cd995..e2ef918 100644 --- a/src/email/email.go +++ b/src/email/email.go @@ -33,9 +33,9 @@ func CreateEmailAccount(accountData EmailAccountData, smtpHost string, smtpPort } func (account *EmailAccount) SendEmail(toEmails []string, subject string, message string) { - logging.Debugf("Sending an email from %s to %s", account.email, strings.Join(toEmails, "")) + logging.Debugf("Sending an email from %s to %s", account.email, strings.Join(toEmails, ", ")) - ToEmailList := strings.Join(toEmails, "") + ToEmailList := strings.Join(toEmails, ", ") mime := "MIME-version: 1.0;\r\nContent-Type: text/html; charset=\"UTF-8\";\r\n\r\n"