Hi team,
Very simple question…
I'm wanting to overide CUserIdentity so that instead of 'username' column it matches against 'email_address'
Thanks
having a blonde moment
Hi team,
Very simple question…
I'm wanting to overide CUserIdentity so that instead of 'username' column it matches against 'email_address'
Thanks
having a blonde moment
You have to ovverride the authenticate as shown here :
http://www.yiiframew…ide/topics.auth
and check the email against the username ppty of the UserIdentity
UserIdentity will always have username and password and you can of course check anything against its username (which has been filled in a login form for instance)
hope this answers your question
Thanks to both of you. Exactly what I was looking for.
Keep up the great work