src/controllers/UserController.php
public function putActivate($userId)
    {
        try {
            $user = Sentry::getUserProvider()->findById($userId);
            $activationCode = $user->getActivationCode();
            $user->attemptActivation($activationCode);
        } catch (\Cartalyst\Sentry\Users\UserNotFoundException $e) {
            return Response::json(array('deletedUser' => false, 'message' => trans('syntara::users.messages.not-found'), 'messageType' => 'danger'));
        } catch (\Cartalyst\Sentry\Users\UserAlreadyActivatedException $e) {
            return Response::json(array('deletedUser' => false, 'message' => trans('syntara::users.messages.activate-already'), 'messageType' => 'danger'));
        }

        return Response::json(array('deletedUser' => true, 'message' => trans('syntara::users.messages.activate-success'), 'messageType' => 'success'));
    }
public function putActivate($userId)
    {
        try {
            $user = Sentry::getUserProvider()->findById($userId);
            $activationCode = $user->getActivationCode();
            $user->attemptActivation($activationCode);
        } catch (\Cartalyst\Sentry\Users\UserNotFoundException $e) {
            return Response::json(array('deletedUser' => false, 'message' => trans('syntara::users.messages.not-found'), 'messageType' => 'danger'));
        } catch (\Cartalyst\Sentry\Users\UserAlreadyActivatedException $e) {
            return Response::json(array('deletedUser' => false, 'message' => trans('syntara::users.messages.activate-already'), 'messageType' => 'danger'));
        }

        return Response::json(array('deletedUser' => true, 'message' => trans('syntara::users.messages.activate-success'), 'messageType' => 'success'));
    }
Activate a user since the dashboard
@param  int $userId
@return Response