Commit a293a8651a3bde412f48c32388a31913f16d0bbe
1 parent
f0472e1b
user registration
Showing
1 changed file
with
0 additions
and
19 deletions
Show diff stats
app/library/App/Controllers/UserController.php
| ... | ... | @@ -82,23 +82,4 @@ class UserController extends CrudResourceController |
| 82 | 82 | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - protected function createItem(Model $item, $data) | |
| 86 | - { | |
| 87 | - $this->beforeAssignData($item, $data); | |
| 88 | - $item->assign($data, null, $this->whitelistCreate()); | |
| 89 | - $this->afterAssignData($item, $data); | |
| 90 | - | |
| 91 | - $this->beforeSave($item); | |
| 92 | - $this->beforeCreate($item); | |
| 93 | - | |
| 94 | - $success = $item->create(); | |
| 95 | - | |
| 96 | - if ($success) { | |
| 97 | - | |
| 98 | - $this->afterCreate($item); | |
| 99 | - $this->afterSave($item); | |
| 100 | - } | |
| 101 | - | |
| 102 | - return $success ? $item : null; | |
| 103 | - } | |
| 104 | 85 | } | ... | ... |