{"action":"created","issue":{"url":"https://api.github.com/repos/apragacz/django-rest-registration/issues/5","repository_url":"https://api.github.com/repos/apragacz/django-rest-registration","labels_url":"https://api.github.com/repos/apragacz/django-rest-registration/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/apragacz/django-rest-registration/issues/5/comments","events_url":"https://api.github.com/repos/apragacz/django-rest-registration/issues/5/events","html_url":"https://github.com/apragacz/django-rest-registration/issues/5","id":293965723,"node_id":"MDU6SXNzdWUyOTM5NjU3MjM=","number":5,"title":"Make login API compatible with email address","user":{"login":"sks444","id":22263040,"node_id":"MDQ6VXNlcjIyMjYzMDQw","avatar_url":"https://avatars0.githubusercontent.com/u/22263040?v=4","gravatar_id":"","url":"https://api.github.com/users/sks444","html_url":"https://github.com/sks444","followers_url":"https://api.github.com/users/sks444/followers","following_url":"https://api.github.com/users/sks444/following{/other_user}","gists_url":"https://api.github.com/users/sks444/gists{/gist_id}","starred_url":"https://api.github.com/users/sks444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sks444/subscriptions","organizations_url":"https://api.github.com/users/sks444/orgs","repos_url":"https://api.github.com/users/sks444/repos","events_url":"https://api.github.com/users/sks444/events{/privacy}","received_events_url":"https://api.github.com/users/sks444/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-02T17:32:15Z","updated_at":"2018-07-19T10:23:55Z","closed_at":"2018-02-12T16:01:22Z","author_association":"NONE","body":"For now, login API is taking two fields i.e. \"login\" and \"password\" for logging in a user. How can we make this API compatible with the email address of the user? i.e. a user can log in to the website by entering his username or email address along with the password."},"comment":{"url":"https://api.github.com/repos/apragacz/django-rest-registration/issues/comments/406229849","html_url":"https://github.com/apragacz/django-rest-registration/issues/5#issuecomment-406229849","issue_url":"https://api.github.com/repos/apragacz/django-rest-registration/issues/5","id":406229849,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjIyOTg0OQ==","user":{"login":"mynksngh","id":6624331,"node_id":"MDQ6VXNlcjY2MjQzMzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6624331?v=4","gravatar_id":"","url":"https://api.github.com/users/mynksngh","html_url":"https://github.com/mynksngh","followers_url":"https://api.github.com/users/mynksngh/followers","following_url":"https://api.github.com/users/mynksngh/following{/other_user}","gists_url":"https://api.github.com/users/mynksngh/gists{/gist_id}","starred_url":"https://api.github.com/users/mynksngh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mynksngh/subscriptions","organizations_url":"https://api.github.com/users/mynksngh/orgs","repos_url":"https://api.github.com/users/mynksngh/repos","events_url":"https://api.github.com/users/mynksngh/events{/privacy}","received_events_url":"https://api.github.com/users/mynksngh/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T10:23:55Z","updated_at":"2018-07-19T10:23:55Z","author_association":"NONE","body":"/api/v1/accounts/login/\r\nPost This Data:\r\n{\r\n\"email\": \"demo\",\r\n\"password\": \"123456\"\r\n}\r\n\r\nGetting Error:\r\n\r\n{\r\n    \"login\": [\r\n        \"This field is required.\"\r\n    ]\r\n}\r\n\r\n\r\nMy Setting:\r\n\r\n'USER_LOGIN_FIELDS': ['username', 'email'],"}}
{"actor":{"display_login":"mynksngh"}}