Hi,

I would not use a callback validator in case, but a combined
validator. You can override the default form of sfGuardUser by
modifying sfGuardUserForm in your project:

sfGuardUserForm
{
  configure()
  {
    $this->validatorSchema['username'] = new sfValidatorOr(array(
      new sfValidatorEmail(),
      new sfValidatorRegex(array('pattern' => '\w+')),
    ));
  }
}

Bernhard
--
Software Architect & Engineer
Blog: http://webmozarts.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to