GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — setup.py update-user doesn't change password · Issue #7304 · pgadmin-org/pgadmin4

setup.py update-user doesn't change password #7304

New issue
Copy link
New issue
Copy link
Closed
#7318
Closed
setup.py update-user doesn't change password#7304
#7318
Copy link
Assignees
yogeshmahajan-1903
Labels
Bug
Milestone
8.5

Description

@jmckulk
jmckulk
opened on Mar 21, 2024
Issue body actions

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:

  1. 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              |
+---------------------------------+
  1. Verify the user can log into the pgAdmin GUI using the password pass123.
  2. 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              |
+---------------------------------+
  1. Try to log into the pgAdmin GUI using the new password newpass123 and observe the failure.
  2. Confirm that logging in with the old password pass123 still works.
  3. 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

pgadmin-version

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

Activity

  1. jmckulk
    added
    Bug
    on Mar 21, 2024
  2. benjaminjb
    added a commit that references this issue on Mar 25, 2024

    Add password to data in update_user

    This issue will close once commit eef1d58 is merged into the 'master' branch.
    eef1d58
  3. akshay-joshi
    added this to Not Refinedon Mar 26, 2024
  4. akshay-joshi
    added
    EDB Sprint 164
    on Mar 26, 2024
  5. akshay-joshi
    added this to Current Sprint (213) and removed this from Not Refinedon Mar 26, 2024
  6. akshay-joshi
    moved this to In Review in Current Sprint (213)on Mar 26, 2024
  7. benjaminjb
    added a commit that references this issue on Mar 26, 2024

    Add password to data in update_user

    This issue will close once commit ad09749 is merged into the 'master' branch.
    ad09749
  8. khushboovashi
    closed this as completedin #7318on Mar 27, 2024
  9. khushboovashi
    added a commit that references this issue on Mar 27, 2024

    Fix the issue where the update-user CLI command doesn't change the pa…

    48a86f6
  10. akshay-joshi
    moved this from In Review to ✅ Done in Current Sprint (213)on Mar 27, 2024
  11. akshay-joshi
    moved this from ✅ Done to In Testing in Current Sprint (213)on Mar 27, 2024
  12. akshay-joshi
    added this to the 8.5 milestone on Mar 27, 2024
  13. akshay-joshi
    reopened this on Mar 27, 2024
  14. akshay-joshi
    added
    EDB Sprint 165
    and removed
    EDB Sprint 164
    on Mar 27, 2024
  15. akshay-joshi
    assigned
    yogeshmahajan-1903
    on Mar 28, 2024
  16. yogeshmahajan-1903 commented on Mar 29, 2024

    @yogeshmahajan-1903
    yogeshmahajan-1903
    on Mar 29, 2024
    Contributor
    More actions

    This is working fine.

  17. yogeshmahajan-1903
    closed this as completedon Mar 29, 2024
  18. akshay-joshi
    moved this from In Testing to ✅ Done in Current Sprint (213)on Mar 29, 2024
  19. akshay-joshi
    removed this from Current Sprint (213)on Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yogeshmahajan-1903
    yogeshmahajan-1903

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 8.5

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.