aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-06 12:09:25 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-06 12:09:25 +0200
commit0fdf8fce75307992ecd784f22cf68ab5712b0b91 (patch)
tree0f0c052429b197cc2e28ddda059003c932e206b5 /app
parentFix recipe name validation (diff)
downloadferdium-server-0fdf8fce75307992ecd784f22cf68ab5712b0b91.tar.gz
ferdium-server-0fdf8fce75307992ecd784f22cf68ab5712b0b91.tar.zst
ferdium-server-0fdf8fce75307992ecd784f22cf68ab5712b0b91.zip
Fix recipe name validation
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/ServiceController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js
index 309ae09..1dfec49 100644
--- a/app/Controllers/Http/ServiceController.js
+++ b/app/Controllers/Http/ServiceController.js
@@ -20,7 +20,7 @@ class ServiceController {
20 20
21 // Validate user input 21 // Validate user input
22 const validation = await validateAll(request.all(), { 22 const validation = await validateAll(request.all(), {
23 name: 'required|alpha', 23 name: 'required|string',
24 recipeId: 'required', 24 recipeId: 'required',
25 }); 25 });
26 if (validation.fails()) { 26 if (validation.fails()) {