Ejemplo n.º 1
0
 public static function Init($params)
 {
     DebugManager::Log("Got a logout request!", '@');
     /**
      * @todo ValidateLogin should provide a token, which is passed to
      *       SessionManager
      */
     if (AccountController::ValidateLogin($params)) {
         $account = AccountController::Search($params);
         SessionManager::Create(true, reset($account));
     } else {
         self::$defaultRedirect = 'login';
     }
     return new ResponseObject();
 }