diff --git a/pkg/api/password.go b/pkg/api/password.go index f3c2b0b7058..e71f1317ee4 100644 --- a/pkg/api/password.go +++ b/pkg/api/password.go @@ -12,7 +12,8 @@ func SendResetPasswordEmail(c *middleware.Context, form dtos.SendResetPasswordEm userQuery := m.GetUserByLoginQuery{LoginOrEmail: form.UserOrEmail} if err := bus.Dispatch(&userQuery); err != nil { - return ApiError(404, "User does not exist", err) + c.Logger.Info("Requested password reset for user that was not found", "user", userQuery.LoginOrEmail) + return ApiError(200, "Email sent", err) } emailCmd := m.SendResetPasswordEmailCommand{User: userQuery.Result} diff --git a/public/app/partials/reset_password.html b/public/app/partials/reset_password.html index b0807a06920..82024932a16 100644 --- a/public/app/partials/reset_password.html +++ b/public/app/partials/reset_password.html @@ -21,15 +21,22 @@
-