diff --git a/bbbeasy-backend/app/src/Actions/Presets/Add.php b/bbbeasy-backend/app/src/Actions/Presets/Add.php index 9d9d418d..5cc305c2 100644 --- a/bbbeasy-backend/app/src/Actions/Presets/Add.php +++ b/bbbeasy-backend/app/src/Actions/Presets/Add.php @@ -50,6 +50,7 @@ public function save($f3, $params): void $dataChecker = new DataChecker(); $dataChecker->verify($form['name'], Validator::notEmpty()->setName('name')); + $dataChecker->verify($form['name'], Validator::length(1, 64)->setName('name')); $dataChecker->verify($userId, Validator::notEmpty()->setName('user_id')); $errorMessage = 'Preset could not be added';