From 6ae0cce231d979cf6b4f990d4d5a1f8257eaa5ce Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 7 Feb 2017 18:33:27 +0200 Subject: [PATCH] user registration --- app/library/App/Controllers/UserController.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/library/App/Controllers/UserController.php b/app/library/App/Controllers/UserController.php index d9044ed..5b31e1b 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -44,12 +44,7 @@ class UserController extends CrudResourceController public function registration() { - return [ - 'firstName', - 'lastName', - 'password' - ]; - return json_encode($this->create()); + return $this->createResponse($this->create()); } -- libgit2 0.21.4