I'm building a webapp with symgony1.4 and doctrine1.2, and I wanna use the sfDoctrineGuardPlugin, but I have a little problem.
sfDoctrineGuardPlugin is built to authenticate by username, but I need to change it to ask for an email.
Any idea how to do it?
If I am understanding your question correctly, you want to allow login with e-mail.
sfDoctrineGuardPlugin supports login using e-mail or username, but in version 5.0.0 is broken, according to this ticket:
http://trac.symfony-project.org/ticket/8919
There is a patch there. Apply the patch and create an entry in your app.yml setting allow_login_with_email to true:
all:
sf_guard_plugin:
allow_login_with_email: true
Is this what you need?
http://bluehorn.co.nz/2009/06/12/symfony-12-propel-and-sfguardplugin-email-login/
This has been written for propel, but probably is easily applicable with doctrine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With