{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/16323","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/16323/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/16323/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/16323/events","html_url":"https://github.com/laravel/framework/pull/16323","id":188040408,"number":16323,"title":"[5.4] Include the password hash in auth session","user":{"login":"themsaid","id":4332182,"avatar_url":"https://avatars.githubusercontent.com/u/4332182?v=3","gravatar_id":"","url":"https://api.github.com/users/themsaid","html_url":"https://github.com/themsaid","followers_url":"https://api.github.com/users/themsaid/followers","following_url":"https://api.github.com/users/themsaid/following{/other_user}","gists_url":"https://api.github.com/users/themsaid/gists{/gist_id}","starred_url":"https://api.github.com/users/themsaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themsaid/subscriptions","organizations_url":"https://api.github.com/users/themsaid/orgs","repos_url":"https://api.github.com/users/themsaid/repos","events_url":"https://api.github.com/users/themsaid/events{/privacy}","received_events_url":"https://api.github.com/users/themsaid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-11-08T16:34:39Z","updated_at":"2016-11-23T12:01:55Z","closed_at":"2016-11-15T16:41:55Z","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/16323","html_url":"https://github.com/laravel/framework/pull/16323","diff_url":"https://github.com/laravel/framework/pull/16323.diff","patch_url":"https://github.com/laravel/framework/pull/16323.patch"},"body":"This PR uses the following format for the auth session `id||password_hash`, while attempting to bring the user from the session we'll compare the password hash with the current one in the DB and fail in case no match were found.\r\n\r\nSo now if the password hash changes all logged in instances of the user will be logged out, this includes the user who changed the password as well, to prevent kicking that user out the developer needs to use `Auth::refresh()` after changing the password.\r\n\r\n```\r\nauth()->user()->update([\r\n    'password' => bcrypt('caro')\r\n]);\r\n\r\nAuth::refresh();\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/262495939","html_url":"https://github.com/laravel/framework/pull/16323#issuecomment-262495939","issue_url":"https://api.github.com/repos/laravel/framework/issues/16323","id":262495939,"user":{"login":"srmklive","id":839335,"avatar_url":"https://avatars.githubusercontent.com/u/839335?v=3","gravatar_id":"","url":"https://api.github.com/users/srmklive","html_url":"https://github.com/srmklive","followers_url":"https://api.github.com/users/srmklive/followers","following_url":"https://api.github.com/users/srmklive/following{/other_user}","gists_url":"https://api.github.com/users/srmklive/gists{/gist_id}","starred_url":"https://api.github.com/users/srmklive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srmklive/subscriptions","organizations_url":"https://api.github.com/users/srmklive/orgs","repos_url":"https://api.github.com/users/srmklive/repos","events_url":"https://api.github.com/users/srmklive/events{/privacy}","received_events_url":"https://api.github.com/users/srmklive/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T12:01:55Z","updated_at":"2016-11-23T12:01:55Z","body":"@taylorotwell yes i agree, that is something that needs to be done on the user end."}}
{"actor":{"display_login":"srmklive"}}