added contact info support and the code for sending a password reminder
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user