The username in my login form can be a username or an email address.
By default, the username field uses sfValidatorString() and this isn't
enough to achieve what I require. If the text entered by the user has
"@" in it, I want to check if it's a valid email address (i.e. correct
format).

My question is, how do I implement sfCallbackValidator in sfGuard.

I have experimented and successfully implemented sfCallbackValidator
in a regular form. But I'm unsure on how to integrate this sfGuard.
maybe the only way is to edit the original sfGuard files?

Thank you very much for the help :)
--~--~---------~--~----~------------~-------~--~----~
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