Email based authentication

Contrary to traditional username/password authentication system, I need to authenticate users based on email/password (there would be no username field in any of the script).

What I have done:

Removed all username references (db and script)

I created a public property, email in ‘UserIdentity’ class (components/UserIdentity) and replaced all occurrences of username with email

replaced username with email in login.php (views/site/login/)

Now, I see Property "LoginForm.email" is not defined. error when accessing site/login

I am newbie to Yii and help to resolve this issue

Oops! how I missed Larry Ulman’s post (http://blog.dmcinsights.com/2010/01/07/custom-authentication-using-the-yii-framework/)