Commit 8b47a52dff520b9b5c71712daf96c211e6dd8761

Authored by Alex Savenko
1 parent 78bb0a2a

registration

Showing 1 changed file with 0 additions and 12 deletions   Show diff stats
app/library/App/Controllers/UserController.php
... ... @@ -55,21 +55,9 @@ class UserController extends CrudResourceController
55 55 $item = $this->createModelInstance();
56 56  
57 57 //$newItem = $this->createItem($item, $data);
58   - $this->beforeAssignData($item, $data);
59   - $item->assign($data, null, $this->whitelistCreate());
60   - $this->afterAssignData($item, $data);
61   -
62   - $this->beforeSave($item);
63   - $this->beforeCreate($item);
64 58  
65 59 $success = $item->create();
66 60  
67   - if ($success) {
68   -
69   - $this->afterCreate($item);
70   - $this->afterSave($item);
71   - }
72   -
73 61 $newItem = $success ? $item : null;
74 62  
75 63 if (!$newItem) {
... ...