Indicate incorrect password compared to empty / invalid password field in the error response (#10223)
Этот коммит содержится в:
коммит произвёл
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
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user