Originally Posted by archu
Thanks for the reply. I think you din't get my point. I am asking for the code which help me to login using both username and email id . Ie is if i want i can login with a user name. Or else with a email id . The same way which is there in monster.com
Still my answer remains the same but i will add something more.

If one verification process fails you can go with the other but you can also test if the username contains some predefined valid email format and then go for email validation or the username one.