Commit 2feb2cb37019a2b391519997ed455f09cc28aa8c
1 parent
02e09afd
user registration
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
app/library/App/Controllers/UserController.php
| @@ -75,15 +75,13 @@ class UserController extends CrudResourceController | @@ -75,15 +75,13 @@ class UserController extends CrudResourceController | ||
| 75 | $primaryKey = $this->getModelPrimaryKey(); | 75 | $primaryKey = $this->getModelPrimaryKey(); |
| 76 | $responseData = $this->getFindData($newItem->$primaryKey); | 76 | $responseData = $this->getFindData($newItem->$primaryKey); |
| 77 | 77 | ||
| 78 | - | ||
| 79 | - return $data; | ||
| 80 | - | ||
| 81 | $response = $this->getCreateResponse($responseData, $data); | 78 | $response = $this->getCreateResponse($responseData, $data); |
| 82 | 79 | ||
| 83 | $this->afterHandleCreate($newItem, $data, $response); | 80 | $this->afterHandleCreate($newItem, $data, $response); |
| 84 | $this->afterHandleWrite(); | 81 | $this->afterHandleWrite(); |
| 85 | $this->afterHandle(); | 82 | $this->afterHandle(); |
| 86 | 83 | ||
| 84 | + return $data; | ||
| 87 | return $response; | 85 | return $response; |
| 88 | 86 | ||
| 89 | } | 87 | } |