private function saveEnteredPasswordCmd()
 {
     $this->passwordChecker->setUserEnteredPassword($_POST["password"]);
     if (!$this->passwordChecker->isUserEnteredPasswordCorrect()) {
         ilUtil::sendFailure($this->lng->txt("tst_password_entered_wrong_password"), true);
     }
     $this->ctrl->redirectByClass($this->getNextCommandClass(), $this->getNextCommandCmd());
 }
 protected function handlePasswordProtectionRedirect()
 {
     if ($this->ctrl->getNextClass() == 'iltestpasswordprotectiongui') {
         return;
     }
     if (!$this->passwordChecker->isPasswordProtectionPageRedirectRequired()) {
         return;
     }
     $this->ctrl->setParameter($this, 'lock', $this->getLockParameter());
     $nextCommand = $this->ctrl->getCmdClass() . '::' . $this->ctrl->getCmd();
     $this->ctrl->setParameterByClass('ilTestPasswordProtectionGUI', 'nextCommand', $nextCommand);
     $this->ctrl->redirectByClass('ilTestPasswordProtectionGUI', 'showPasswordForm');
 }