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