GeezerVison is showing github.com — Different minimum password lengths in use · Issue #5705 · pgadmin-org/pgadmin4
Different minimum password lengths in use #5705DescriptionDifferent parts of the application operate with different minimum password lengths
Both Change User Password dialog and Password Reset Form (after clicking Forgotten your password?) require passwords which are at least 8 characters long. In contrast, the User Management dialog (as an Admin user) as well as setup.py (while creating the initial Admin user) happily consume passwords that are at least 6 characters long.
The documentation of the Change User Password dialog (see here) recommends to use at least 6 characters for a password:
Ensure that your password is an adequate length; 6 characters should be the absolute minimum number of characters in the password.
To Reproduce
Steps to reproduce the behavior:
- Create a new internal user with a password which is only 6 characters long.
- Log in as that user and change its password using the Change Password dialog.
- The Change User Password dialog requires a password which is at least 8 characters long.
- The Reset Password Form also requires password which is at least 8 characters long.
- As an Admin user in User Management dialog you could still set this user's password to a token >= 6 characters long.
Expected behavior
All parts of the application should recommend and enforce passwords with the same length. Ideally, the minimum length of passwords for internal pgAdmin 4 users should be configurable in config.py et al. Activityadityatoshniwal commented on Jan 19, 2023 In that case, lets not add it to config.py. pravesh-sharma commented on Jan 19, 2023
In that case, lets not add it to config.py.
Can we keep SECURITY_PASSWORD_LENGTH_MIN to some other file? dpage commented on Jan 19, 2023 Err, no. config.py is exactly where it needs to go, along with the other security config, that can then be overridden in config_local.py, config_distro.py, and config_system.py.
Figuring out how to get the value to the frontend is the correct solution - not moving it elsewhere. Reacted by Aditya Toshniwal yogeshmahajan-1903 commented on Jan 20, 2023 @pravesh-sharma
Also please make sure config parameter is considered while setting up initial user account. Currently it is hardcoded in user_info.py. Reacted by Pravesh Sharma nikhil-mohite commented on Feb 2, 2023
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|