1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Change password min-length to 8 characters (#1098)

This commit is contained in:
Dominik Murzynowski
2017-02-14 20:24:59 +01:00
committed by Joshua Tauberer
parent f6b20a810f
commit 36bef2ee16
4 changed files with 7 additions and 7 deletions

View File

@@ -30,8 +30,8 @@ def mgmt(cmd, data=None, is_json=False):
def read_password():
while True:
first = getpass.getpass('password: ')
if len(first) < 4:
print("Passwords must be at least four characters.")
if len(first) < 8:
print("Passwords must be at least eight characters.")
continue
if re.search(r'[\s]', first):
print("Passwords cannot contain spaces.")