I have been using services for making API calls for my android app, the login API works for username, can there be a support to login with either email id or username?

Comments

piya22 created an issue. See original summary.

Snehal Brahmbhatt’s picture

For this you require to use LoginToboggan module.

Thanks,
Snehal Brahmbhatt | AddWeb Solution
https://www.drupal.org/user/3147795/track

piya22’s picture

Hi Snehal, thanks for responding. Login with username and email id works on my site need it for my app. The API at present that I am using for login accepts only username and password, my email id and password combo gives me a authentication failure message.

kylebrowning’s picture

Priority: Major » Normal

Feature requests cannot be major.

marcingy’s picture

Status: Active » Closed (won't fix)

Core doesn't offer this feature nor will services

rakesh.nimje84@gmail.com’s picture

StatusFileSize
new167.43 KB
new30.81 KB

I know there is no normal way to achieve this. But I have done it for one of my project.
I am sending you the working archive of group of modules with which it is possible.
If you extract the archive there are three modules : email_registration, er_svc & services.
You can try this on fresh drupal install and check it.
But here you will have no control for username because of the use of email_registration module.
But don't worry, you can create usernames pattern in your own way by implementing hook_email_registration_name (if needed).

piya22’s picture

Thanks rakesh.nimje84@gmail.comit worked! :)