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

Этот коммит содержится в:
Daniel Schalla
2019-02-04 18:54:57 +01:00
коммит произвёл GitHub
родитель dbf54b3599
Коммит ba7ab0b8d1

Просмотреть файл

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