mirror of https://github.com/JohnHammond/CTFd.git
Strip password before length check (#1155)
* Strip password before length check * Pin black to an older versionbulk-clear-sessions
parent
6c5c63d667
commit
97f5dcaf8c
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue