protected function beforeAction($action)
 {
     if ($this->isRequiredLogin() && !$this->hasLoggedIn() && ($action->id != $this->getActionLogin() || $this->id != $this->getControllerLogin())) {
         $this->redirect($this->getLoginUrl());
         return false;
     }
     return parent::beforeAction($action);
 }