Example #1
0
 public function actionRecover()
 {
     $Form = new Form('logon', $this->getRouter(), $this->getRequest());
     $Form->attach(new FormFieldset('logonCredentials'));
     $Form->logonCredentials->setLegend('Logon Credentials');
     $FormNote1 = new FormNote('logonmessage', FormNote::POSITIONNORMAL);
     $FormNote1->addSection(false, 'Please provide the e-mail address registered with us to begin the password reset process.');
     $Form->logonCredentials->attach($FormNote1);
     $Form->logonCredentials->attach(new FormInput('username', 'E-Mail Address'));
     $Form->logonCredentials->username->restrict(new FormRestrictionNotEmpty());
     $Form->logonCredentials->username->restrict(new FormRestrictionEmail());
     $Form->logonCredentials->username->restrict(new FormRestrictionMaxLength(48));
     $Form->logonCredentials->attach(new FormInputSubmit('Recover Password'));
     if ($Form->ok()) {
     } else {
         $this->getTemplate()->body->form = $Form->fetch();
     }
 }