From 7120e22b83d06c928a1b7b2ce6645904c434c8cd Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sun, 25 Aug 2019 13:40:30 +0200 Subject: Fix recipe store bundling of custom recipes --- app/Controllers/Http/UserController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Controllers/Http/UserController.js') 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 { }) { const data = request.only(['firstname', 'email', 'password']); + let user; try { - const user = await User.create({ + user = await User.create({ email: data.email, password: data.password, username: data.firstname -- cgit v1.2.3-70-g09d2