diff --git a/api4/user.go b/api4/user.go index 8601e65e43..f6881b45d7 100644 --- a/api4/user.go +++ b/api4/user.go @@ -762,7 +762,7 @@ func patchUser(c *Context, w http.ResponseWriter, r *http.Request) { } if err = c.App.DoubleCheckPassword(ouser, *patch.Password); err != nil { - c.SetInvalidParam("password") + c.Err = err return } }