From 2da5b12c31074591eaf16929b760322b98f189e8 Mon Sep 17 00:00:00 2001 From: jloup Date: Fri, 11 May 2018 13:57:29 +0200 Subject: Mails. --- api/password_reset.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'api/password_reset.go') 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) { } } + if MAIL_CONFIG.IsEnabled { + err = SendResetPasswordMail(q.In.Email, token) + if err != nil { + return nil, NewInternalError(err) + } + } + return nil, nil } -- cgit v1.2.3