4 * BasesfGuardRequestForgotPasswordForm for requesting a forgot password email
6 * @package sfDoctrineGuardPlugin
8 * @author Jonathan H. Wage <jonwage@gmail.com>
9 * @version SVN: $Id: BasesfGuardRequestForgotPasswordForm.class.php 23536 2009-11-02 21:41:21Z Kris.Wallsmith $
11 class BasesfGuardRequestForgotPasswordForm extends BaseForm
13 public function setup()
15 $this->widgetSchema['email_address'] = new sfWidgetFormInput();
16 $this->validatorSchema['email_address'] = new sfValidatorString();
18 $this->widgetSchema->setNameFormat('forgot_password[%s]');
21 public function isValid()
23 $valid = parent::isValid();
26 $values = $this->getValues();
27 $this->user = Doctrine_Core::getTable('sfGuardUser')
29 ->where('u.email_address = ?', $values['email_address'])