diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-11 13:57:29 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-11 13:57:29 +0200 |
commit | 2da5b12c31074591eaf16929b760322b98f189e8 (patch) | |
tree | 407b699688edddca381ca80e5ecea9458d748cc1 /api/password_reset.go | |
parent | 299b6b6d9fb879c06e675ef240f361348629ff6c (diff) | |
download | Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.gz Front-2da5b12c31074591eaf16929b760322b98f189e8.tar.zst Front-2da5b12c31074591eaf16929b760322b98f189e8.zip |
Mails.
Diffstat (limited to 'api/password_reset.go')
-rw-r--r-- | api/password_reset.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/password_reset.go b/api/password_reset.go index 4b002cd..c7931d4 100644 --- a/api/password_reset.go +++ b/api/password_reset.go | |||
@@ -42,6 +42,13 @@ func (q PasswordResetQuery) Run() (interface{}, *Error) { | |||
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||
45 | if MAIL_CONFIG.IsEnabled { | ||
46 | err = SendResetPasswordMail(q.In.Email, token) | ||
47 | if err != nil { | ||
48 | return nil, NewInternalError(err) | ||
49 | } | ||
50 | } | ||
51 | |||
45 | return nil, nil | 52 | return nil, nil |
46 | } | 53 | } |
47 | 54 | ||