public function signInFormSucceeded(Form $form, ArrayHash $values)
	{
		try {
			$this->user->login($values->username, $values->password);
			if ($values->remember) {
				$this->user->setExpiration('+ ' . $this->sessionExpiration, false);
			} else {
				$this->user->setExpiration('+ ' . $this->loginExpiration, true);
			}
			$this->restoreRequest($this->backlink);
			$this->redirect(":{$this->module}:Homepage:");
		} catch (AuthenticationException $e) {
			if ($e->getCode() == IAuthenticator::NOT_APPROVED) {
				$form->addError('cms.user.accountDeactivated');
			} else {
				$form->addError('cms.user.incorrectUsernameOrPassword');
			}
		}
	}
public function signInFormSucceeded(Form $form, ArrayHash $values)
	{
		try {
			$this->user->login($values->username, $values->password);
			if ($values->remember) {
				$this->user->setExpiration('+ ' . $this->sessionExpiration, false);
			} else {
				$this->user->setExpiration('+ ' . $this->loginExpiration, true);
			}
			$this->restoreRequest($this->backlink);
			$this->redirect(":{$this->module}:Homepage:");
		} catch (AuthenticationException $e) {
			if ($e->getCode() == IAuthenticator::NOT_APPROVED) {
				$form->addError('cms.user.accountDeactivated');
			} else {
				$form->addError('cms.user.incorrectUsernameOrPassword');
			}
		}
	}
public function signInFormSucceeded ( Form $ form , ArrayHash $ values ) { try { $ this -> user -> login ( $ values -> username , $ values -> password ) ; if ( $ values -> remember ) { $ this -> user -> setExpiration ( '+ ' . $ this -> sessionExpiration , false ) ; } else { $ this -> user -> setExpiration ( '+ ' . $ this -> loginExpiration , true ) ; } $ this -> restoreRequest ( $ this -> backlink ) ; $ this -> redirect ( ":{$this->module}:Homepage:" ) ; } catch ( AuthenticationException $ e ) { if ( $ e -> getCode ( ) == IAuthenticator :: NOT_APPROVED ) { $ form -> addError ( 'cms.user.accountDeactivated' ) ; } else { $ form -> addError ( 'cms.user.incorrectUsernameOrPassword' ) ; } } }
Zpracovani prihlasovaciho formulare
@param Form $form
@param ArrayHash $values
@throws AbortException
Zpracovani prihlasovaciho formulare