added contact info support and the code for sending a password reminder

This commit is contained in:
2025-10-01 23:02:33 -06:00
parent 2acac513f8
commit 1952b34cce
9 changed files with 177 additions and 13 deletions
+2
View File
@@ -13,6 +13,7 @@ package email
import (
"fmt"
"git.erbosoft.com/amy/amsterdam/config"
"git.erbosoft.com/amy/amsterdam/util"
"github.com/CloudyKit/jet/v6"
)
@@ -126,6 +127,7 @@ func AmNewEmailMessage(sender int32, ip string) Message {
}
rc.uid = sender
rc.ip = ip
rc.SetFrom(config.GlobalConfig.Email.MailFromAddr, config.GlobalConfig.Email.MailFromName)
return rc
}
+1 -1
View File
@@ -7,7 +7,7 @@ If this reminder is not sufficient for you to remember what your password is,
then the system can change your password for you. To do so, please visit
the following URL:
http://example.com/passrecovery/{{ change_uid }}.{{ change.auth }}
http://example.com/passrecovery/{{ change_uid }}.{{ change_auth }}
Your password will be changed and a new password will be E-mailed to you
at this address.