private function AddPasswordField()
 {
     $name = 'Password';
     $field = Input::Password($name);
     $this->AddField($field);
     $this->SetRequired($name);
     $this->AddValidator($name, StringLength::MinLength(6));
 }
Exemple #2
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');
 }