Commit 36a398b952b5ce87ecaeeea9be3c837559f2ee00
1 parent
8b47a52d
registration
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
app/library/App/Controllers/UserController.php
@@ -58,6 +58,12 @@ class UserController extends CrudResourceController | @@ -58,6 +58,12 @@ class UserController extends CrudResourceController | ||
58 | 58 | ||
59 | $success = $item->create(); | 59 | $success = $item->create(); |
60 | 60 | ||
61 | + if ($success) { | ||
62 | + | ||
63 | + $this->afterCreate($item); | ||
64 | + $this->afterSave($item); | ||
65 | + } | ||
66 | + | ||
61 | $newItem = $success ? $item : null; | 67 | $newItem = $success ? $item : null; |
62 | 68 | ||
63 | if (!$newItem) { | 69 | if (!$newItem) { |