My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
class sfGuardRegisterForm extends sfGuardUserForm
{
public function configure()
{
parent::configure();

unset(
$this['first_name'],
$this['last_name'],
$this['birth_date'],
$this['location'],
$this['latitude'],
$this['longitude'],
$this['bio'],
$this['jabber'],
$this['live'],
$this['aim'],
$this['twitter'],
$this['homepage'],
$this['rss'],
$this['phone']
);

$this->validatorSchema['password'] = new sfValidatorString(
array('min_length' => 6, 'max_length' => 128)
);

$this->widgetSchema['captcha'] = new sfAnotherWidgetFormReCaptcha();
$this->mergePostValidator(
new sfAnotherValidatorSchemaReCaptcha($this, 'captcha')
);
}
}
Show details Hide details

Change log

r40 by dunglas on Apr 22, 2009   Diff
Cleaned version.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 776 bytes, 34 lines
Hosted by Google Code