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)); }
/** * 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'); }
/** * 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'))); } }