Closed (won't fix)
Project:
Services
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2012 at 19:32 UTC
Updated:
1 Oct 2014 at 18:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
d34dman commentedSubmitting a patch which enabled me to use user email for login.
Comment #2
marcingy commentedDrupal core does not support this so services won't either
Comment #3
muschpusch commentedI think it's a nice feature to have since lot's of people use email registration module 10000+ but the patch is not applying to services dev :(
Comment #4
d34dman commentedmarcingy hope you wont mind me uploading this patch for others who would want to use it. As you can see this function can eliminate the need to create another resource just for this purpose. Also as more and more sites are using user email instead of username to login, i strongly feely this to be a valid feature request.
PS: The patch in comment 1 was submitted in Rest_auth queue and got mixed up with services user resources. My apologies for that.
Here is a working patch for the same.
marcingy , I would like to know if it would be worth spending some time to create a patch which would enable the user to select between normal behavior as well as extended ( the one that this patch aims at ) behavior just like the Logout action can select between different api version?
For others following this issue you may be interested in the following initiative.
User Login with E-Mail Address Resource for the Services Module
is an issue in LoginToboggan which aims for similar functionality. But as i had said earlier, creating a different module / resource for this change is an overkill.
Comment #5
d34dman commentedsorry for being rude, i didn't find that there was already a issue which was created earlier for the same purpose...
Click here to visit the old Issue.
Comment #6
kylebrowning commentedI dont think its work time putting this into core, because you can easily override the login method and allow users to login with email. Services goal has always been to provide what is only in Drupal core.
Comment #7
marcingy commentedThis won't go into services which is why I marked it won't fix :)
Comment #8
joelstein commentedIn case this helps somebody, you can do this by changing the argument on its way in to Services: