From ba7ab0b8d1a615c078c8d23ab65f9656d2375c2e Mon Sep 17 00:00:00 2001 From: Daniel Schalla Date: Mon, 4 Feb 2019 18:54:57 +0100 Subject: [PATCH] Indicate incorrect password compared to empty / invalid password field in the error response (#10223) --- api4/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }