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:
committed by
Joshua Tauberer
parent
f6b20a810f
commit
36bef2ee16
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user