Possible to login with email address?

How can I allow users to log in with their email address, instead of a 'username' field?

I'm really not even aware of a major social network platform that uses a username for login.  It's much more common (and easier on the users) if they can login with an email.