Please note that security bugs or issues should be reported to [[email protected]](mailto:[email protected]).
Describe the bug
The setup.py update-user command does not update my password. After running the command with a new password, the UI does not recognize the new password for user login, but it still accepts the old password. This issue prevents me from successfully changing my passwords via command line.
To Reproduce
Steps to reproduce the behavior:
- Create a user with the
setup.py add-user command:
bash-4.4$ setup.py add-user [email protected] pass123
User Details
+---------------------------------+
| Field | Value |
|-------------+-------------------|
| Email | [email protected] |
| auth_source | internal |
| role | Non-admin |
| active | True |
+---------------------------------+
- Verify the user can log into the pgAdmin GUI using the password
pass123.
- Attempt to update the user's password with the
setup.py update-user command:
bash-4.4$ setup update-user [email protected] --password newpass123
+---------------------------------+
| Field | Value |
|-------------+-------------------|
| Username | [email protected] |
| Email | [email protected] |
| auth_source | internal |
| role | Non-admin |
| active | True |
+---------------------------------+
- Try to log into the pgAdmin GUI using the new password
newpass123 and observe the failure.
- Confirm that logging in with the old password
pass123 still works.
- Update the password through the GUI to
thirdpass123 and verify that you can log in using thirdpass123.
Expected behavior
After using the setup.py update-user command to update a user's password, the new password should be recognized by the system, allowing me to log in with the new credential. The old password should no longer be valid.
Error message
No explicit error message is displayed in the terminal. However, the pgAdmin GUI login process fails with an incorrect password error when attempting to use the new password set via the setup.py update-user command.
Screenshots

Desktop (please complete the following information):
- OS: [Linux Container]
- Version: [8.4]
- Mode: [Server]
- Browser (if running in server mode): [brave/chrome]
- Package type: [python/container]
Additional context