mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-20 15:24:25 +01:00
Strip password before length check (#1155)
* Strip password before length check * Pin black to an older version
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user