mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-14 17:11:59 -05:00
Require passwords to be at least 6 chars long in setup.py. Fixes #1322
This commit is contained in:
1 parent
a1d8ca8c1c
commit
d79524ff60
1 file changed
+5
-2
+5
-2
@@ -68,8 +68,11 @@ account:\n""")
|
||||
return getpass.getpass(), getpass.getpass('Retype password:')
|
||||
|
||||
p1, p2 = pprompt()
|
||||
while p1 != p2:
|
||||
print('Passwords do not match. Please try again.')
|
||||
while p1 != p2 or len(p1) < 6:
|
||||
if p1 != p2:
|
||||
print('Passwords do not match. Please try again.')
|
||||
else:
|
||||
print('Password must be at least 6 characters. Please try again.')
|
||||
p1, p2 = pprompt()
|
||||
|
||||
# Setup Flask-Security
|
||||
|
||||
Reference in new issue
Block a user