mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
non-admins must supply existing passwd when changing passwd (#10249)
This commit is contained in:
parent
515b02813b
commit
e5f7641e46
5 changed files with 24 additions and 9 deletions
|
@ -87,7 +87,7 @@ func (handler *Handler) userUpdatePassword(w http.ResponseWriter, r *http.Reques
|
|||
}
|
||||
|
||||
if !handler.passwordStrengthChecker.Check(payload.NewPassword) {
|
||||
return httperror.BadRequest("Password does not meet the requirements", nil)
|
||||
return httperror.BadRequest("Password does not meet the minimum strength requirements", nil)
|
||||
}
|
||||
|
||||
user.Password, err = handler.CryptoService.Hash(payload.NewPassword)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue