Commit c06130020c8b554580c40b28abe6f5107b243a51
1 parent
aba75087
user registration
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
app/library/App/Controllers/UserController.php
| ... | ... | @@ -68,13 +68,12 @@ class UserController extends CrudResourceController |
| 68 | 68 | |
| 69 | 69 | $newItem = $this->createItem($item, $data); |
| 70 | 70 | |
| 71 | - | |
| 72 | - return $data; | |
| 73 | - | |
| 74 | 71 | if (!$newItem) { |
| 75 | 72 | return $this->onCreateFailed($item, $data); |
| 76 | 73 | } |
| 77 | 74 | |
| 75 | + return $data; | |
| 76 | + | |
| 78 | 77 | $primaryKey = $this->getModelPrimaryKey(); |
| 79 | 78 | $responseData = $this->getFindData($newItem->$primaryKey); |
| 80 | 79 | ... | ... |