From 2feb2cb37019a2b391519997ed455f09cc28aa8c Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 7 Feb 2017 18:47:51 +0200 Subject: [PATCH] user registration --- app/library/App/Controllers/UserController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/library/App/Controllers/UserController.php b/app/library/App/Controllers/UserController.php index 3b70711..08f726c 100755 --- a/app/library/App/Controllers/UserController.php +++ b/app/library/App/Controllers/UserController.php @@ -75,15 +75,13 @@ class UserController extends CrudResourceController $primaryKey = $this->getModelPrimaryKey(); $responseData = $this->getFindData($newItem->$primaryKey); - - return $data; - $response = $this->getCreateResponse($responseData, $data); $this->afterHandleCreate($newItem, $data, $response); $this->afterHandleWrite(); $this->afterHandle(); + return $data; return $response; } -- libgit2 0.21.4