Indicate incorrect password compared to empty / invalid password field in the error response (#10223)

This commit is contained in:
Daniel Schalla
2019-02-04 18:54:57 +01:00
committed by GitHub
parent dbf54b3599
commit ba7ab0b8d1

View File

@@ -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
}
}