moves claims into models
This commit is contained in:
parent
38722c9da5
commit
f1c2249744
6 changed files with 57 additions and 35 deletions
|
|
@ -13,7 +13,7 @@ type ContentLoginToken struct {
|
|||
|
||||
// LoginToken creates and sends a login token email with provided template content.
|
||||
func (m *Mailer) LoginToken(name, address string, content ContentLoginToken) error {
|
||||
msg := &Mail{
|
||||
msg := &message{
|
||||
from: NewEmail(m.fromName, m.from),
|
||||
to: NewEmail(name, address),
|
||||
subject: "Login Token",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue