/**
  * Register a user from $_POST values and return the result of the process as a JSON
  */
 public function register()
 {
     try {
         $userManager = new UserManager();
         $this->JsonResponse($userManager->register($_POST));
         unset($_POST);
     } catch (Exception $e) {
     }
 }