protected function createComponentForgottenPasswordForm(): Form
	{
		$form = $this->formFactory->create();
		$form->addProtection();

		$form->addText('usernameOrEmail', 'cms.user.usernameOrEmail')
			->setRequired();

		$form->addSubmit('send', 'form.send');

		$form->addLink('back', 'form.back', $this->link('in'));

		$form->onSuccess[] = [$this, 'forgottenPasswordFormSucceeded'];

		return $form;
	}
protected function createComponentForgottenPasswordForm(): Form
	{
		$form = $this->formFactory->create();
		$form->addProtection();

		$form->addText('usernameOrEmail', 'cms.user.usernameOrEmail')
			->setRequired();

		$form->addSubmit('send', 'form.send');

		$form->addLink('back', 'form.back', $this->link('in'));

		$form->onSuccess[] = [$this, 'forgottenPasswordFormSucceeded'];

		return $form;
	}
protected function createComponentForgottenPasswordForm ( ) : Form { $ form = $ this -> formFactory -> create ( ) ; $ form -> addProtection ( ) ; $ form -> addText ( 'usernameOrEmail' , 'cms.user.usernameOrEmail' ) -> setRequired ( ) ; $ form -> addSubmit ( 'send' , 'form.send' ) ; $ form -> addLink ( 'back' , 'form.back' , $ this -> link ( 'in' ) ) ; $ form -> onSuccess [ ] = [ $ this , 'forgottenPasswordFormSucceeded' ] ; return $ form ; }
Formular pro zapomenute heslo
@return Form
@throws \Nette\Application\UI\InvalidLinkException
Formular pro zapomenute heslo