| Changes to /trunk/lib/form/sfGuardRegisterForm.class.php |
r0 vs. r40
Edit
|
r40
|
| /trunk/lib/form/sfGuardRegisterForm.class.php | /trunk/lib/form/sfGuardRegisterForm.class.php r40 | ||
| 1 | <?php | ||
|---|---|---|---|
| 2 | class sfGuardRegisterForm extends sfGuardUserForm | ||
| 3 | { | ||
| 4 | public function configure() | ||
| 5 | { | ||
| 6 | parent::configure(); | ||
| 7 | |||
| 8 | unset( | ||
| 9 | $this['first_name'], | ||
| 10 | $this['last_name'], | ||
| 11 | $this['birth_date'], | ||
| 12 | $this['location'], | ||
| 13 | $this['latitude'], | ||
| 14 | $this['longitude'], | ||
| 15 | $this['bio'], | ||
| 16 | $this['jabber'], | ||
| 17 | $this['live'], | ||
| 18 | $this['aim'], | ||
| 19 | $this['twitter'], | ||
| 20 | $this['homepage'], | ||
| 21 | $this['rss'], | ||
| 22 | $this['phone'] | ||
| 23 | ); | ||
| 24 | |||
| 25 | $this->validatorSchema['password'] = new sfValidatorString( | ||
| 26 | array('min_length' => 6, 'max_length' => 128) | ||
| 27 | ); | ||
| 28 | |||
| 29 | $this->widgetSchema['captcha'] = new sfAnotherWidgetFormReCaptcha(); | ||
| 30 | $this->mergePostValidator( | ||
| 31 | new sfAnotherValidatorSchemaReCaptcha($this, 'captcha') | ||
| 32 | ); | ||
| 33 | } | ||
| 34 | } | ||