Strip password before length check (#1155)

* Strip password before length check
* Pin black to an older version
This commit is contained in:
Dave
2019-11-06 15:25:39 +11:00
committed by Kevin Chung
parent 6c5c63d667
commit 97f5dcaf8c
2 changed files with 2 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ def register():
.filter_by(email=email_address)
.first()
)
pass_short = len(password) == 0
pass_short = len(password.strip()) == 0
pass_long = len(password) > 128
valid_email = validators.validate_email(request.form["email"])
team_name_email_check = validators.validate_email(name)