Commit a2604481d595c81c79d4684b2c2c793da1e29284

Authored by Alex Savenko
1 parent 416ca2cc

user registration

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/library/App/Controllers/UserController.php
... ... @@ -60,9 +60,6 @@ class UserController extends CrudResourceController
60 60  
61 61 $data = $this->transformPostData($data);
62 62  
63   -
64   - return $data;
65   -
66 63 $item = $this->createModelInstance();
67 64  
68 65 $newItem = $this->createItem($item, $data);
... ... @@ -71,6 +68,9 @@ class UserController extends CrudResourceController
71 68 return $this->onCreateFailed($item, $data);
72 69 }
73 70  
  71 +
  72 + return $data;
  73 +
74 74 $primaryKey = $this->getModelPrimaryKey();
75 75 $responseData = $this->getFindData($newItem->$primaryKey);
76 76  
... ...