UserIdentity

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

Also check this: http://www.yiiframew…doc/cookbook/6/

Thanks to both of you. Exactly what I was looking for.

Keep up the great work