diff --git a/app/controllers/backend/UserController.php b/app/controllers/backend/UserController.php index c1f8206..c104381 100644 --- a/app/controllers/backend/UserController.php +++ b/app/controllers/backend/UserController.php @@ -97,4 +97,16 @@ class UserController extends \Phalcon\Mvc\Controller $this->flash->success('The account was: ' . $status); $this->response->redirect('/admin'); } + + public function activationEmailAction($id) + { + $user = User::findFirstById($id); + if ($user) { + $this->eventsManager->fire('auth:onSentActivation', $user); + $this->flash->success('Ativation email sent to: ' . $user->email); + } else { + $this->flash->error('Invalid user: ' . $id); + } + $this->response->redirect('/admin'); + } }