{"action":"created","issue":{"url":"https://api.github.com/repos/strapi/strapi/issues/2188","repository_url":"https://api.github.com/repos/strapi/strapi","labels_url":"https://api.github.com/repos/strapi/strapi/issues/2188/labels{/name}","comments_url":"https://api.github.com/repos/strapi/strapi/issues/2188/comments","events_url":"https://api.github.com/repos/strapi/strapi/issues/2188/events","html_url":"https://github.com/strapi/strapi/pull/2188","id":372948702,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0OTk5MDY1","number":2188,"title":"Fix error 500 when user trying to signin with bad credentials","user":{"login":"devaublanc","id":12794277,"node_id":"MDQ6VXNlcjEyNzk0Mjc3","avatar_url":"https://avatars3.githubusercontent.com/u/12794277?v=4","gravatar_id":"","url":"https://api.github.com/users/devaublanc","html_url":"https://github.com/devaublanc","followers_url":"https://api.github.com/users/devaublanc/followers","following_url":"https://api.github.com/users/devaublanc/following{/other_user}","gists_url":"https://api.github.com/users/devaublanc/gists{/gist_id}","starred_url":"https://api.github.com/users/devaublanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devaublanc/subscriptions","organizations_url":"https://api.github.com/users/devaublanc/orgs","repos_url":"https://api.github.com/users/devaublanc/repos","events_url":"https://api.github.com/users/devaublanc/events{/privacy}","received_events_url":"https://api.github.com/users/devaublanc/received_events","type":"User","site_admin":false},"labels":[{"id":881292887,"node_id":"MDU6TGFiZWw4ODEyOTI4ODc=","url":"https://api.github.com/repos/strapi/strapi/labels/pr:%20%F0%9F%90%9B%20Bug%20fix","name":"pr: 🐛 Bug fix","color":"fc2929","default":false},{"id":881296679,"node_id":"MDU6TGFiZWw4ODEyOTY2Nzk=","url":"https://api.github.com/repos/strapi/strapi/labels/source:%20Plugin","name":"source: Plugin","color":"105989","default":false}],"state":"open","locked":false,"assignee":{"login":"lauriejim","id":5716596,"node_id":"MDQ6VXNlcjU3MTY1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5716596?v=4","gravatar_id":"","url":"https://api.github.com/users/lauriejim","html_url":"https://github.com/lauriejim","followers_url":"https://api.github.com/users/lauriejim/followers","following_url":"https://api.github.com/users/lauriejim/following{/other_user}","gists_url":"https://api.github.com/users/lauriejim/gists{/gist_id}","starred_url":"https://api.github.com/users/lauriejim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauriejim/subscriptions","organizations_url":"https://api.github.com/users/lauriejim/orgs","repos_url":"https://api.github.com/users/lauriejim/repos","events_url":"https://api.github.com/users/lauriejim/events{/privacy}","received_events_url":"https://api.github.com/users/lauriejim/received_events","type":"User","site_admin":false},"assignees":[{"login":"lauriejim","id":5716596,"node_id":"MDQ6VXNlcjU3MTY1OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5716596?v=4","gravatar_id":"","url":"https://api.github.com/users/lauriejim","html_url":"https://github.com/lauriejim","followers_url":"https://api.github.com/users/lauriejim/followers","following_url":"https://api.github.com/users/lauriejim/following{/other_user}","gists_url":"https://api.github.com/users/lauriejim/gists{/gist_id}","starred_url":"https://api.github.com/users/lauriejim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauriejim/subscriptions","organizations_url":"https://api.github.com/users/lauriejim/orgs","repos_url":"https://api.github.com/users/lauriejim/repos","events_url":"https://api.github.com/users/lauriejim/events{/privacy}","received_events_url":"https://api.github.com/users/lauriejim/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-23T11:23:55Z","updated_at":"2018-10-23T16:54:03Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/strapi/strapi/pulls/2188","html_url":"https://github.com/strapi/strapi/pull/2188","diff_url":"https://github.com/strapi/strapi/pull/2188.diff","patch_url":"https://github.com/strapi/strapi/pull/2188.patch"},"body":"<!-- ⚠️ Your PR title will appear in the changelogs please make it short detailed and understandable for all. -->\r\n\r\n<!-- Uncomment the correct contribution type. !-->\r\n\r\nMy PR is a:\r\n<!-- 💥 Breaking change -->\r\n🐛 Bug fix\r\n<!-- 💅 Enhancement -->\r\n<!-- 🚀 New feature -->\r\n\r\nMain update on the:\r\n<!-- Admin -->\r\n<!-- Documentation -->\r\n<!-- Framework -->\r\nPlugin\r\n\r\n<!-- Write a short description of what your PR does and link the concerned issues of your update. -->\r\n\r\nStep 1) Enable the email confirmation\r\nStep 2) Signin with bad credentials on `/auth/local` POST\r\n\r\nAn 500 error comes up instead of the expected 400 response\r\n\r\n```\r\nTypeError: Cannot read property 'confirmed' of null\r\nat callback (/usr/src/api/plugins/users-permissions/controllers/Auth.js:59:83)\r\n```\r\nExpected : \r\n```\r\n{\r\n    \"statusCode\": 400,\r\n    \"error\": \"Bad Request\",\r\n    \"message\": \"Identifier or password invalid.\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/strapi/strapi/issues/comments/432330147","html_url":"https://github.com/strapi/strapi/pull/2188#issuecomment-432330147","issue_url":"https://api.github.com/repos/strapi/strapi/issues/2188","id":432330147,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjMzMDE0Nw==","user":{"login":"devaublanc","id":12794277,"node_id":"MDQ6VXNlcjEyNzk0Mjc3","avatar_url":"https://avatars3.githubusercontent.com/u/12794277?v=4","gravatar_id":"","url":"https://api.github.com/users/devaublanc","html_url":"https://github.com/devaublanc","followers_url":"https://api.github.com/users/devaublanc/followers","following_url":"https://api.github.com/users/devaublanc/following{/other_user}","gists_url":"https://api.github.com/users/devaublanc/gists{/gist_id}","starred_url":"https://api.github.com/users/devaublanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devaublanc/subscriptions","organizations_url":"https://api.github.com/users/devaublanc/orgs","repos_url":"https://api.github.com/users/devaublanc/repos","events_url":"https://api.github.com/users/devaublanc/events{/privacy}","received_events_url":"https://api.github.com/users/devaublanc/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T16:54:03Z","updated_at":"2018-10-23T16:54:03Z","author_association":"CONTRIBUTOR","body":"@lauriejim done"}}
{"actor":{"display_login":"devaublanc"}}