From 9acc67a06a3e668f2c5182c9f0fd2ef3c0a65267 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Wed, 26 Jul 2023 09:18:12 +0200 Subject: [PATCH] Refactoring --- model-passwd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-passwd.go b/model-passwd.go index d441a2f..8e1da99 100644 --- a/model-passwd.go +++ b/model-passwd.go @@ -103,7 +103,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error { log.Printf(fmt.Sprintf("passwordLost 92 : %v", searchRes.Entries[0])) return err } - templateMail := template.Must(template.ParseFiles(templatePath + "/lost_password_email.txt")) + templateMail := template.Must(template.ParseFiles(templatePath + "/passwd/lost_password_email.txt")) buf := bytes.NewBuffer([]byte{}) templateMail.Execute(buf, &CodeMailFields{ To: user.OtherMailbox,