wrong template

This commit is contained in:
Your Name 2023-10-06 19:39:33 -04:00
parent 58d6209a61
commit fc10a22bde
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ func SendRecoveryEmail(recipient, username, code string) bool {
RecoveryCode: code,
}
var body bytes.Buffer
err := c.Templates.Registration.Execute(&body, data)
err := c.Templates.Recovery.Execute(&body, data)
if err != nil {
log.Printf("scsusers.sendRecoveryEmail: Recovery template failed to execute: %v returned %s\n", data, err.Error())
return false