mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +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",
|
"title",
|
||||||
validate=[
|
validate=[
|
||||||
validate.Length(
|
validate.Length(
|
||||||
min=0,
|
min=0, max=80, error="Page could not be saved. Your title is too long.",
|
||||||
max=128,
|
|
||||||
error="Page could not be saved. Your title is too long.",
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user