forked from agroal/pgagroal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[agroal#206] Remove is_valid_password function and provide better mes…
…sages. Close agroal#206. See <agroal#200 (comment)>. The is_valid_password() was checking only the password length and the fact that was made by ASCII chars. The check for the length can be done "inline" directly within a loop. Added a constant with the minimal length of the password, so that it is possible to insert a warning message for the user in the case she inputs a too short password. The system also prompts the user for a password with a message that explicitly tells her the password will not appear on the terminal. See also the initial work on agroal#200.
- Loading branch information
Showing
1 changed file
with
13 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters