aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-06 12:06:26 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-06 12:06:26 +0200
commitc474a32fff586fac042aec0f2bcac7503c165845 (patch)
treeb458d5154eb79a0fbbed7e03fa735f0a821c2a4b /app
parentFix recipe download (diff)
downloadferdium-server-c474a32fff586fac042aec0f2bcac7503c165845.tar.gz
ferdium-server-c474a32fff586fac042aec0f2bcac7503c165845.tar.zst
ferdium-server-c474a32fff586fac042aec0f2bcac7503c165845.zip
Fix recipe name validation
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/RecipeController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/Http/RecipeController.js b/app/Controllers/Http/RecipeController.js
index 890b232..17b35fb 100644
--- a/app/Controllers/Http/RecipeController.js
+++ b/app/Controllers/Http/RecipeController.js
@@ -58,7 +58,7 @@ class RecipeController {
58 58
59 // Validate user input 59 // Validate user input
60 const validation = await validateAll(request.all(), { 60 const validation = await validateAll(request.all(), {
61 name: 'required|alpha', 61 name: 'required|string',
62 id: 'required|unique:recipes,recipeId', 62 id: 'required|unique:recipes,recipeId',
63 author: 'required|accepted', 63 author: 'required|accepted',
64 png: 'required|url', 64 png: 'required|url',