public function loginAction() { $oWizard = new OX_Admin_UI_Install_Wizard($this->getInstallStatus(), 'login'); $oForm = new OX_Admin_UI_Install_AdminLoginForm($this->oTranslation, $oWizard->getCurrentStep()); if ($oForm->validate()) { if (!OA_Upgrade_Login::checkLogin()) { $this->setModelProperty('aMessages', array('error' => array($GLOBALS['strUsernameOrPasswordWrong']))); } else { $oWizard->markStepAsCompleted(); $this->redirect($oWizard->getNextStep()); } } $this->setModelProperty('form', $oForm->serialize()); $this->setModelProperty('oWizard', $oWizard); $this->setModelProperty('loaderMessage', $GLOBALS['strLoginProgressMessage']); $this->setModelProperty('isUpgrade', $this->getInstallStatus()->isUpgrade()); }