Strip password before length check (#1155)

* Strip password before length check
* Pin black to an older version
bulk-clear-sessions
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

@ -25,7 +25,7 @@ before_install:
- sudo rm -f /etc/boto.cfg
- export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- python3.6 -m pip install black>=19.3b0
- python3.6 -m pip install black==19.3b0
install:
- pip install -r development.txt
- yarn global add prettier@1.17.0

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)