diff options
author | George Goldberg <george@gberg.me> | 2017-06-28 15:29:19 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-06-28 07:29:19 -0700 |
commit | 0f6992034229f542d823f73cf740002ad0ac48e3 (patch) | |
tree | 718a8a999f661fb9c51678a75e8d3aaaf541b453 /app | |
parent | e527b6bbe4335f685528d305f8700d555420cf8e (diff) | |
download | chat-0f6992034229f542d823f73cf740002ad0ac48e3.tar.gz chat-0f6992034229f542d823f73cf740002ad0ac48e3.tar.bz2 chat-0f6992034229f542d823f73cf740002ad0ac48e3.zip |
PLT-6920: Fix password reset email. (#6773)
Diffstat (limited to 'app')
-rw-r--r-- | app/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/user.go b/app/user.go index 6ab6f8344..07e38cc9b 100644 --- a/app/user.go +++ b/app/user.go @@ -1142,7 +1142,7 @@ func SendPasswordReset(email string, siteURL string) (bool, *model.AppError) { return false, err } - if _, err := SendPasswordResetEmail(email, token, user.Locale, siteURL); err != nil { + if _, err := SendPasswordResetEmail(user.Email, token, user.Locale, siteURL); err != nil { return false, model.NewLocAppError("SendPasswordReset", "api.user.send_password_reset.send.app_error", nil, "err="+err.Message) } |