I have made a local patch to my Services module that allows the User Login resource to accept an e-mail address and password to login a user. Basically, it checks to see if $username is an e-mail address in _user_resource_login, if it is, it quickly looks up a user name and repopulates the $username variable with the user name if it finds it. Execution continues as normal from there.

Is this a patch the Services module would be interested in? Or would you rather I create a new User Resource, e.g. "Login w/ E-mail Address" and commit that new resource patch?

Please let me know and I'd be happy to implement either one, thanks!

Comments

marcingy’s picture

This won't go into services as the feature is not part of drupal core. It either needs to be in own project - you can get a sandbox that can eventually be promoted to a full project or maybe speak to the loggintoboggon project and see if they want to include a service.

tyler.frankenstein’s picture

Status: Active » Closed (won't fix)

Thanks!

I have taken this up with the LoginToboggan team:

http://drupal.org/node/1431724