Example #1
0
 private function AddPasswordField()
 {
     $name = 'Password';
     $field = Input::Password($name);
     $this->AddField($field);
     $this->SetRequired($name);
 }
 private function AddPasswordField()
 {
     $name = 'Password';
     $field = Input::Password($name);
     $this->AddField($field);
     $this->SetRequired($name);
     $this->AddValidator($name, StringLength::MinLength(6));
 }
Example #3
0
 /**
  * Adds the password field to the form
  */
 private function AddPasswordField()
 {
     $name = 'Password';
     $this->AddField(Input::Password($name));
     if (!$this->member->Exists()) {
         $this->SetRequired($name);
     }
     $this->AddValidator($name, StringLength::MinLength(6));
     $this->SetTransAttribute($name, 'placeholder');
 }
Example #4
0
 /**
  * Adds the locked field
  */
 private function AddPasswordRepeatField()
 {
     $name = 'PasswordRepeat';
     $this->AddField(Input::Password($name));
     if (Request::PostData('Password')) {
         $this->SetRequired($name);
         $this->AddValidator($name, CompareCheck::Equals($this->Value('Password')));
     }
 }