mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Fix incorrect schema validator (#1790)
* Use right length in Page title validator
This commit is contained in:
@@ -16,9 +16,7 @@ class PageSchema(ma.ModelSchema):
|
||||
"title",
|
||||
validate=[
|
||||
validate.Length(
|
||||
min=0,
|
||||
max=128,
|
||||
error="Page could not be saved. Your title is too long.",
|
||||
min=0, max=80, error="Page could not be saved. Your title is too long.",
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user