mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Incorporated review comments for #5705
This commit is contained in:
@@ -55,13 +55,13 @@ def user_info_server():
|
||||
email = input(ENTER_EMAIL_ADDRESS)
|
||||
|
||||
p1, p2 = pprompt()
|
||||
while p1 != p2 or len(p1) < 6:
|
||||
while p1 != p2 or len(p1) < config.PASSWORD_LENGTH_MIN:
|
||||
if p1 != p2:
|
||||
print('Passwords do not match. Please try again.')
|
||||
else:
|
||||
print(
|
||||
'Password must be at least 6 characters. '
|
||||
'Please try again.'
|
||||
'Password must be at least {} characters. '
|
||||
'Please try again.'.format(config.PASSWORD_LENGTH_MIN)
|
||||
)
|
||||
p1, p2 = pprompt()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user