mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +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
|
@ -20,6 +20,7 @@ var (
|
|||
errAdminCannotRemoveSelf = errors.New("Cannot remove your own user account. Contact another administrator")
|
||||
errCannotRemoveLastLocalAdmin = errors.New("Cannot remove the last local administrator account")
|
||||
errCryptoHashFailure = errors.New("Unable to hash data")
|
||||
errWrongPassword = errors.New("Wrong password")
|
||||
)
|
||||
|
||||
func hideFields(user *portainer.User) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue