Commit 7a2fdcb0832deea7de78e9dac6746290662c1dc1
1 parent
07f071db
user registration
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/UserController.php
| @@ -50,8 +50,6 @@ class UserController extends CrudResourceController | @@ -50,8 +50,6 @@ class UserController extends CrudResourceController | ||
| 50 | 50 | ||
| 51 | $data = $this->getPostedData(); | 51 | $data = $this->getPostedData(); |
| 52 | 52 | ||
| 53 | - return $data; | ||
| 54 | - | ||
| 55 | if (!$data || count($data) == 0) { | 53 | if (!$data || count($data) == 0) { |
| 56 | return $this->onNoDataProvided(); | 54 | return $this->onNoDataProvided(); |
| 57 | } | 55 | } |
| @@ -68,6 +66,9 @@ class UserController extends CrudResourceController | @@ -68,6 +66,9 @@ class UserController extends CrudResourceController | ||
| 68 | 66 | ||
| 69 | $item = $this->createModelInstance(); | 67 | $item = $this->createModelInstance(); |
| 70 | 68 | ||
| 69 | + | ||
| 70 | + return $data; | ||
| 71 | + | ||
| 71 | $newItem = $this->createItem($item, $data); | 72 | $newItem = $this->createItem($item, $data); |
| 72 | 73 | ||
| 73 | if (!$newItem) { | 74 | if (!$newItem) { |