Commit aba75087290d80dc5ae18ed0562c3c7753ecb993
1 parent
7a2fdcb0
user registration
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/UserController.php
@@ -66,10 +66,10 @@ class UserController extends CrudResourceController | @@ -66,10 +66,10 @@ class UserController extends CrudResourceController | ||
66 | 66 | ||
67 | $item = $this->createModelInstance(); | 67 | $item = $this->createModelInstance(); |
68 | 68 | ||
69 | + $newItem = $this->createItem($item, $data); | ||
69 | 70 | ||
70 | - return $data; | ||
71 | 71 | ||
72 | - $newItem = $this->createItem($item, $data); | 72 | + return $data; |
73 | 73 | ||
74 | if (!$newItem) { | 74 | if (!$newItem) { |
75 | return $this->onCreateFailed($item, $data); | 75 | return $this->onCreateFailed($item, $data); |