Commit 02e09afd4f80f6f99cf014b69c8105f293dba994
1 parent
c0613002
user registration
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -72,11 +72,12 @@ class UserController extends CrudResourceController |
72 | 72 | return $this->onCreateFailed($item, $data); |
73 | 73 | } |
74 | 74 | |
75 | - return $data; | |
76 | - | |
77 | 75 | $primaryKey = $this->getModelPrimaryKey(); |
78 | 76 | $responseData = $this->getFindData($newItem->$primaryKey); |
79 | 77 | |
78 | + | |
79 | + return $data; | |
80 | + | |
80 | 81 | $response = $this->getCreateResponse($responseData, $data); |
81 | 82 | |
82 | 83 | $this->afterHandleCreate($newItem, $data, $response); | ... | ... |