2015-06-05 01:15:38 -05:00
|
|
|
package models
|
|
|
|
|
2015-06-08 06:39:02 -05:00
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
|
|
|
|
|
2015-06-05 01:15:38 -05:00
|
|
|
type SendEmailCommand struct {
|
2015-06-08 09:51:25 -05:00
|
|
|
To []string
|
|
|
|
Template string
|
|
|
|
Data map[string]interface{}
|
|
|
|
Massive bool
|
|
|
|
Info string
|
2015-06-05 01:15:38 -05:00
|
|
|
}
|
|
|
|
|
2016-06-15 07:45:05 -05:00
|
|
|
type SendWebhook struct {
|
2016-06-16 01:15:48 -05:00
|
|
|
Url string
|
|
|
|
User string
|
|
|
|
Password string
|
|
|
|
Body string
|
2016-06-15 07:45:05 -05:00
|
|
|
}
|
|
|
|
|
2015-06-05 01:15:38 -05:00
|
|
|
type SendResetPasswordEmailCommand struct {
|
2015-06-05 04:08:19 -05:00
|
|
|
User *User
|
2015-06-05 01:15:38 -05:00
|
|
|
}
|
|
|
|
|
2015-06-08 06:39:02 -05:00
|
|
|
type ValidateResetPasswordCodeQuery struct {
|
|
|
|
Code string
|
|
|
|
Result *User
|
|
|
|
}
|