{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/docs/pulls/comments/53544611","id":53544611,"diff_hunk":"@@ -195,12 +195,7 @@ working with a login form could look like::\n                 // Prior to 2.3 use\n                 // `return $this->redirect($this->Auth->redirect());`\n             }\n-            $this->Session->setFlash(\n-                __('Username or password is incorrect'),\n-                'default',\n-                array(),\n-                'auth'\n-            );\n+            $this->Flash->error(__('Username or password is incorrect'));","path":"en/core-libraries/components/authentication.rst","position":10,"original_position":10,"commit_id":"a18731bfcba5f7c84957ad942b546c067eab5473","original_commit_id":"a18731bfcba5f7c84957ad942b546c067eab5473","user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"body":"I would include the 'old' way to do this here as well. The docs don't only cover 2.7+.","created_at":"2016-02-20T04:54:15Z","updated_at":"2016-02-20T04:54:15Z","html_url":"https://github.com/cakephp/docs/pull/3763#discussion_r53544611","pull_request_url":"https://api.github.com/repos/cakephp/docs/pulls/3763","_links":{"self":{"href":"https://api.github.com/repos/cakephp/docs/pulls/comments/53544611"},"html":{"href":"https://github.com/cakephp/docs/pull/3763#discussion_r53544611"},"pull_request":{"href":"https://api.github.com/repos/cakephp/docs/pulls/3763"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/docs/pulls/3763","id":59910613,"html_url":"https://github.com/cakephp/docs/pull/3763","diff_url":"https://github.com/cakephp/docs/pull/3763.diff","patch_url":"https://github.com/cakephp/docs/pull/3763.patch","issue_url":"https://api.github.com/repos/cakephp/docs/issues/3763","number":3763,"state":"open","locked":false,"title":"replaced Session->setFlash with FlashComponent","user":{"login":"xhs345","id":9390869,"avatar_url":"https://avatars.githubusercontent.com/u/9390869?v=3","gravatar_id":"","url":"https://api.github.com/users/xhs345","html_url":"https://github.com/xhs345","followers_url":"https://api.github.com/users/xhs345/followers","following_url":"https://api.github.com/users/xhs345/following{/other_user}","gists_url":"https://api.github.com/users/xhs345/gists{/gist_id}","starred_url":"https://api.github.com/users/xhs345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhs345/subscriptions","organizations_url":"https://api.github.com/users/xhs345/orgs","repos_url":"https://api.github.com/users/xhs345/repos","events_url":"https://api.github.com/users/xhs345/events{/privacy}","received_events_url":"https://api.github.com/users/xhs345/received_events","type":"User","site_admin":false},"body":"Flash method description was listed twice","created_at":"2016-02-19T06:42:17Z","updated_at":"2016-02-20T04:54:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb32426d7cc50a92bc493f9d5aa7dbcf9e3c6dc5","assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/docs/milestones/2","html_url":"https://github.com/cakephp/docs/milestones/2.x","labels_url":"https://api.github.com/repos/cakephp/docs/milestones/2/labels","id":748921,"number":2,"title":"2.x","description":null,"creator":{"login":"ravage84","id":625761,"avatar_url":"https://avatars.githubusercontent.com/u/625761?v=3","gravatar_id":"","url":"https://api.github.com/users/ravage84","html_url":"https://github.com/ravage84","followers_url":"https://api.github.com/users/ravage84/followers","following_url":"https://api.github.com/users/ravage84/following{/other_user}","gists_url":"https://api.github.com/users/ravage84/gists{/gist_id}","starred_url":"https://api.github.com/users/ravage84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravage84/subscriptions","organizations_url":"https://api.github.com/users/ravage84/orgs","repos_url":"https://api.github.com/users/ravage84/repos","events_url":"https://api.github.com/users/ravage84/events{/privacy}","received_events_url":"https://api.github.com/users/ravage84/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":382,"state":"open","created_at":"2014-08-10T19:12:23Z","updated_at":"2016-02-19T11:21:09Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/docs/pulls/3763/commits","review_comments_url":"https://api.github.com/repos/cakephp/docs/pulls/3763/comments","review_comment_url":"https://api.github.com/repos/cakephp/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/docs/issues/3763/comments","statuses_url":"https://api.github.com/repos/cakephp/docs/statuses/a18731bfcba5f7c84957ad942b546c067eab5473","head":{"label":"xhs345:patch-2","ref":"patch-2","sha":"a18731bfcba5f7c84957ad942b546c067eab5473","user":{"login":"xhs345","id":9390869,"avatar_url":"https://avatars.githubusercontent.com/u/9390869?v=3","gravatar_id":"","url":"https://api.github.com/users/xhs345","html_url":"https://github.com/xhs345","followers_url":"https://api.github.com/users/xhs345/followers","following_url":"https://api.github.com/users/xhs345/following{/other_user}","gists_url":"https://api.github.com/users/xhs345/gists{/gist_id}","starred_url":"https://api.github.com/users/xhs345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhs345/subscriptions","organizations_url":"https://api.github.com/users/xhs345/orgs","repos_url":"https://api.github.com/users/xhs345/repos","events_url":"https://api.github.com/users/xhs345/events{/privacy}","received_events_url":"https://api.github.com/users/xhs345/received_events","type":"User","site_admin":false},"repo":{"id":47913586,"name":"docs","full_name":"xhs345/docs","owner":{"login":"xhs345","id":9390869,"avatar_url":"https://avatars.githubusercontent.com/u/9390869?v=3","gravatar_id":"","url":"https://api.github.com/users/xhs345","html_url":"https://github.com/xhs345","followers_url":"https://api.github.com/users/xhs345/followers","following_url":"https://api.github.com/users/xhs345/following{/other_user}","gists_url":"https://api.github.com/users/xhs345/gists{/gist_id}","starred_url":"https://api.github.com/users/xhs345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhs345/subscriptions","organizations_url":"https://api.github.com/users/xhs345/orgs","repos_url":"https://api.github.com/users/xhs345/repos","events_url":"https://api.github.com/users/xhs345/events{/privacy}","received_events_url":"https://api.github.com/users/xhs345/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xhs345/docs","description":"CakePHP CookBook","fork":true,"url":"https://api.github.com/repos/xhs345/docs","forks_url":"https://api.github.com/repos/xhs345/docs/forks","keys_url":"https://api.github.com/repos/xhs345/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xhs345/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xhs345/docs/teams","hooks_url":"https://api.github.com/repos/xhs345/docs/hooks","issue_events_url":"https://api.github.com/repos/xhs345/docs/issues/events{/number}","events_url":"https://api.github.com/repos/xhs345/docs/events","assignees_url":"https://api.github.com/repos/xhs345/docs/assignees{/user}","branches_url":"https://api.github.com/repos/xhs345/docs/branches{/branch}","tags_url":"https://api.github.com/repos/xhs345/docs/tags","blobs_url":"https://api.github.com/repos/xhs345/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xhs345/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xhs345/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/xhs345/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xhs345/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/xhs345/docs/languages","stargazers_url":"https://api.github.com/repos/xhs345/docs/stargazers","contributors_url":"https://api.github.com/repos/xhs345/docs/contributors","subscribers_url":"https://api.github.com/repos/xhs345/docs/subscribers","subscription_url":"https://api.github.com/repos/xhs345/docs/subscription","commits_url":"https://api.github.com/repos/xhs345/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/xhs345/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/xhs345/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/xhs345/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/xhs345/docs/contents/{+path}","compare_url":"https://api.github.com/repos/xhs345/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xhs345/docs/merges","archive_url":"https://api.github.com/repos/xhs345/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xhs345/docs/downloads","issues_url":"https://api.github.com/repos/xhs345/docs/issues{/number}","pulls_url":"https://api.github.com/repos/xhs345/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/xhs345/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/xhs345/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xhs345/docs/labels{/name}","releases_url":"https://api.github.com/repos/xhs345/docs/releases{/id}","deployments_url":"https://api.github.com/repos/xhs345/docs/deployments","created_at":"2015-12-13T09:48:27Z","updated_at":"2015-12-13T09:48:30Z","pushed_at":"2016-02-19T06:42:00Z","git_url":"git://github.com/xhs345/docs.git","ssh_url":"git@github.com:xhs345/docs.git","clone_url":"https://github.com/xhs345/docs.git","svn_url":"https://github.com/xhs345/docs","homepage":"http://book.cakephp.org","size":40807,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"bc60fd7c05779426d9b5c612b38a6db4fcc7144d","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":1514950,"name":"docs","full_name":"cakephp/docs","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/docs","description":"CakePHP CookBook","fork":false,"url":"https://api.github.com/repos/cakephp/docs","forks_url":"https://api.github.com/repos/cakephp/docs/forks","keys_url":"https://api.github.com/repos/cakephp/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/docs/teams","hooks_url":"https://api.github.com/repos/cakephp/docs/hooks","issue_events_url":"https://api.github.com/repos/cakephp/docs/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/docs/events","assignees_url":"https://api.github.com/repos/cakephp/docs/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/docs/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/docs/tags","blobs_url":"https://api.github.com/repos/cakephp/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/docs/languages","stargazers_url":"https://api.github.com/repos/cakephp/docs/stargazers","contributors_url":"https://api.github.com/repos/cakephp/docs/contributors","subscribers_url":"https://api.github.com/repos/cakephp/docs/subscribers","subscription_url":"https://api.github.com/repos/cakephp/docs/subscription","commits_url":"https://api.github.com/repos/cakephp/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/docs/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/docs/merges","archive_url":"https://api.github.com/repos/cakephp/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/docs/downloads","issues_url":"https://api.github.com/repos/cakephp/docs/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/docs/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/docs/releases{/id}","deployments_url":"https://api.github.com/repos/cakephp/docs/deployments","created_at":"2011-03-23T04:54:13Z","updated_at":"2016-02-16T10:56:58Z","pushed_at":"2016-02-20T04:47:28Z","git_url":"git://github.com/cakephp/docs.git","ssh_url":"git@github.com:cakephp/docs.git","clone_url":"https://github.com/cakephp/docs.git","svn_url":"https://github.com/cakephp/docs","homepage":"http://book.cakephp.org","size":42933,"stargazers_count":507,"watchers_count":507,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1869,"mirror_url":null,"open_issues_count":27,"forks":1869,"open_issues":27,"watchers":507,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/docs/pulls/3763"},"html":{"href":"https://github.com/cakephp/docs/pull/3763"},"issue":{"href":"https://api.github.com/repos/cakephp/docs/issues/3763"},"comments":{"href":"https://api.github.com/repos/cakephp/docs/issues/3763/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/docs/pulls/3763/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/docs/pulls/3763/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/docs/statuses/a18731bfcba5f7c84957ad942b546c067eab5473"}}}}