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

Drop requirement for passwords to have no spaces (#1789)

This commit is contained in:
David Duque
2020-07-16 12:23:11 +01:00
committed by GitHub
parent 1b2711fc42
commit 967409b157
2 changed files with 0 additions and 5 deletions

View File

@@ -605,8 +605,6 @@ def validate_password(pw):
# validate password
if pw.strip() == "":
raise ValueError("No password provided.")
if re.search(r"[\s]", pw):
raise ValueError("Passwords cannot contain spaces.")
if len(pw) < 8:
raise ValueError("Passwords must be at least eight characters.")