1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-18 18:07:22 +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

@@ -599,8 +599,8 @@ def validate_password(pw):
raise ValueError("No password provided.")
if re.search(r"[\s]", pw):
raise ValueError("Passwords cannot contain spaces.")
if len(pw) < 4:
raise ValueError("Passwords must be at least four characters.")
if len(pw) < 8:
raise ValueError("Passwords must be at least eight characters.")
if __name__ == "__main__":