mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-6920: Fix password reset email. (#6773)
This commit is contained in:
committed by
Christopher Speller
parent
e527b6bbe4
commit
0f69920342
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user