Page->IsPostBack && !$this->User->IsGuest) { $this->_afterLoginRedirect(); } } private function _afterLoginRedirect() { $authModule = $this->Application->getModule('auth'); $redirUrl = $authModule->ReturnUrl; if (!$redirUrl || $redirUrl == $this->Service->constructUrl($authModule->LoginPage)) { $redirUrl = $this->Service->constructUrl(NULL); } $this->Response->redirect($redirUrl); } public function loginUser($sender, $param) { if ($this->Page->IsValid) { $this->_afterLoginRedirect(); } } public function validatePassword($sender, $param) { $param->IsValid = $this->Application->getModule('auth')->login( $this->Login->Text, $this->Password->Text, $this->Remember->Checked ? PHP_INT_MAX : 0 ); } } ?>