diff options
author | vantezzen <properly@protonmail.com> | 2019-08-25 13:40:30 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-08-25 13:40:30 +0200 |
commit | 7120e22b83d06c928a1b7b2ce6645904c434c8cd (patch) | |
tree | 98326511e596c95c17934e51e6b65178d05e58cc /app/Controllers/Http/UserController.js | |
parent | Add custom recipe creator (diff) | |
download | ferdium-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.js | 3 |
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 |