aboutsummaryrefslogtreecommitdiffstats
path: root/app/Controllers/Http/UserController.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-25 13:40:30 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-25 13:40:30 +0200
commit7120e22b83d06c928a1b7b2ce6645904c434c8cd (patch)
tree98326511e596c95c17934e51e6b65178d05e58cc /app/Controllers/Http/UserController.js
parentAdd custom recipe creator (diff)
downloadferdium-server-7120e22b83d06c928a1b7b2ce6645904c434c8cd.tar.gz
ferdium-server-7120e22b83d06c928a1b7b2ce6645904c434c8cd.tar.zst
ferdium-server-7120e22b83d06c928a1b7b2ce6645904c434c8cd.zip
Fix recipe store bundling of custom recipes
Diffstat (limited to 'app/Controllers/Http/UserController.js')
-rw-r--r--app/Controllers/Http/UserController.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controllers/Http/UserController.js b/app/Controllers/Http/UserController.js
index f78f28d..5c4d7fb 100644
--- a/app/Controllers/Http/UserController.js
+++ b/app/Controllers/Http/UserController.js
@@ -14,8 +14,9 @@ class UserController {
14 }) { 14 }) {
15 const data = request.only(['firstname', 'email', 'password']); 15 const data = request.only(['firstname', 'email', 'password']);
16 16
17 let user;
17 try { 18 try {
18 const user = await User.create({ 19 user = await User.create({
19 email: data.email, 20 email: data.email,
20 password: data.password, 21 password: data.password,
21 username: data.firstname 22 username: data.firstname