Drupal login form allows users to enter their username or email to login into the site.
I need to achieve the same thing with services. But services allows users to login with username (not working with email).
JSON format for User Login (works).
{"username":'myusername', "password":"mypassword"}
But how can we do login using "email" as username? I've tried the following JSON formats
Input:
{"username":'[email protected]', "password":"mypassword"}
Response:
["Wrong username or password."]
Input:
{"mail":'[email protected]', "password":"mypassword"}
Response:
["Missing required argument username"]
According to this link, I need to tweak the services modules to achieve this requirement.
Is there any way to achieve this?