moves claims into models

This commit is contained in:
dhax 2017-10-04 02:52:19 +02:00
parent 38722c9da5
commit f1c2249744
6 changed files with 57 additions and 35 deletions

View file

@ -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",