Refactoring
This commit is contained in:
parent
4c1f779e47
commit
9acc67a06a
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
log.Printf(fmt.Sprintf("passwordLost 92 : %v", searchRes.Entries[0]))
|
log.Printf(fmt.Sprintf("passwordLost 92 : %v", searchRes.Entries[0]))
|
||||||
return err
|
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{})
|
buf := bytes.NewBuffer([]byte{})
|
||||||
templateMail.Execute(buf, &CodeMailFields{
|
templateMail.Execute(buf, &CodeMailFields{
|
||||||
To: user.OtherMailbox,
|
To: user.OtherMailbox,
|
||||||
|
|
Loading…
Reference in a new issue