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 | 75 | $primaryKey = $this->getModelPrimaryKey(); |
76 | 76 | $responseData = $this->getFindData($newItem->$primaryKey); |
77 | 77 | |
78 | - | |
79 | - return $data; | |
80 | - | |
81 | 78 | $response = $this->getCreateResponse($responseData, $data); |
82 | 79 | |
83 | 80 | $this->afterHandleCreate($newItem, $data, $response); |
84 | 81 | $this->afterHandleWrite(); |
85 | 82 | $this->afterHandle(); |
86 | 83 | |
84 | + return $data; | |
87 | 85 | return $response; |
88 | 86 | |
89 | 87 | } | ... | ... |