Fix password length check.
This commit is contained in:
parent
2b64b3bb38
commit
8741c301d5
|
@ -125,7 +125,8 @@ def create_account() -> Response:
|
||||||
|
|
||||||
if password != request.form['confirm-password']:
|
if password != request.form['confirm-password']:
|
||||||
return render_index(error="Password and confirm password must match!", status=400)
|
return render_index(error="Password and confirm password must match!", status=400)
|
||||||
if 64 < len(password) < 8:
|
password_len = len(password)
|
||||||
|
if password_len < 8 or password_len > 64:
|
||||||
return render_index(error="Password must be between 8 and 64 characters", status=400)
|
return render_index(error="Password must be between 8 and 64 characters", status=400)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue