diff options
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 | ||