harborctl
harborctl copied to clipboard
[NOTE] Notes on "PUT /users/{user_id}/password" API
Here are some notes with "PUT /users/{user_id}/password" API
By swagger file, when login as admin role
the attribute ‘old_password’ is optional when the API is called by the system administrator.






inconsistent behavior
when creating a new user at "Register" page, it requires "8-20 characters long with 1 uppercase, 1 lowercase and 1 number".

but with "PUT /users/{user_id}/password" API, you can change the password any form you wish.