2015-06-05 08:15:38 +02:00
|
|
|
package models
|
|
|
|
|
|
2015-06-08 13:39:02 +02:00
|
|
|
import "errors"
|
|
|
|
|
|
|
|
|
|
var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
|
|
|
|
|
|
2015-06-05 08:15:38 +02:00
|
|
|
type SendEmailCommand struct {
|
2015-06-08 16:51:25 +02:00
|
|
|
To []string
|
|
|
|
|
Template string
|
|
|
|
|
Data map[string]interface{}
|
|
|
|
|
Massive bool
|
|
|
|
|
Info string
|
2015-06-05 08:15:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SendResetPasswordEmailCommand struct {
|
2015-06-05 11:08:19 +02:00
|
|
|
User *User
|
2015-06-05 08:15:38 +02:00
|
|
|
}
|
|
|
|
|
|
2015-06-08 13:39:02 +02:00
|
|
|
type ValidateResetPasswordCodeQuery struct {
|
|
|
|
|
Code string
|
|
|
|
|
Result *User
|
|
|
|
|
}
|