Require passwords to be at least 6 chars long in setup.py. Fixes #1322

pull/3/head
Dave Page 2016-06-30 14:16:30 +01:00
parent a1d8ca8c1c
commit d79524ff60
1 changed files with 5 additions and 2 deletions

View File

@ -68,8 +68,11 @@ account:\n""")
return getpass.getpass(), getpass.getpass('Retype password:')
p1, p2 = pprompt()
while p1 != p2:
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