mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Omit error from http response (#58443)
This commit is contained in:
@@ -28,8 +28,8 @@ func (hs *HTTPServer) SendResetPasswordEmail(c *models.ReqContext) response.Resp
|
|||||||
|
|
||||||
usr, err := hs.userService.GetByLogin(c.Req.Context(), &userQuery)
|
usr, err := hs.userService.GetByLogin(c.Req.Context(), &userQuery)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Logger.Info("Requested password reset for user that was not found", "user", userQuery.LoginOrEmail)
|
c.Logger.Info("Requested password reset for user that was not found", "user", userQuery.LoginOrEmail, "error", err)
|
||||||
return response.Error(http.StatusOK, "Email sent", err)
|
return response.Error(http.StatusOK, "Email sent", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
if usr.IsDisabled {
|
if usr.IsDisabled {
|
||||||
|
|||||||
Reference in New Issue
Block a user