GitHub PullRequestReviewCommentEvent at 2014-10-14 03:17:19
Repository: fels_15
Actor: tranluan91
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_15/pulls/comments/18807128","id":18807128,"diff_hunk":"@@ -0,0 +1,39 @@\n+<?php\n+class UsersController extends AppController{\n+\tvar $scaffold;\n+\tpublic function beforeFilter(){\n+\t\tparent::beforeFilter();\n+\t\t$this->Auth->allow('register','login','logout');\n+\t}\n+\n+\tpublic function login(){\n+\t\tif($this->request->is('post')){\n+\t\t\tif($this->Auth->login()){\n+\t\t\t\t//$this->Session->setFlash(__('Welcome' . $this->Auth->user('username')));\n+\t\t\t\t$this->redirect($this->Auth->redirect());\n+\t\t\t}else{\n+\t\t\t\t$this->Session->setFlash(__('invalid username or password! try again'));\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\n+\tpublic function logout(){\n+\t\t$this->redirect($this->Auth->logout());\n+\t}\n+\n+\n+\tpublic function register(){\n+\t\tif($this->request->is('post')){","path":"app/Controller/UsersController.php","position":27,"original_position":27,"commit_id":"b4cff6ca3dce5366497cd945dd2a4a379a958174","original_commit_id":"b4cff6ca3dce5366497cd945dd2a4a379a958174","user":{"login":"tranluan91","id":5018433,"avatar_url":"https://avatars.githubusercontent.com/u/5018433?v=2","gravatar_id":"","url":"https://api.github.com/users/tranluan91","html_url":"https://github.com/tranluan91","followers_url":"https://api.github.com/users/tranluan91/followers","following_url":"https://api.github.com/users/tranluan91/following{/other_user}","gists_url":"https://api.github.com/users/tranluan91/gists{/gist_id}","starred_url":"https://api.github.com/users/tranluan91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranluan91/subscriptions","organizations_url":"https://api.github.com/users/tranluan91/orgs","repos_url":"https://api.github.com/users/tranluan91/repos","events_url":"https://api.github.com/users/tranluan91/events{/privacy}","received_events_url":"https://api.github.com/users/tranluan91/received_events","type":"User","site_admin":false},"body":"Sai convention, cần dùng 1 space trước ```{```","created_at":"2014-10-14T03:17:19Z","updated_at":"2014-10-14T03:17:19Z","html_url":"https://github.com/framgia/fels_15/pull/5#discussion_r18807128","pull_request_url":"https://api.github.com/repos/framgia/fels_15/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_15/pulls/comments/18807128"},"html":{"href":"https://github.com/framgia/fels_15/pull/5#discussion_r18807128"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_15/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_15/pulls/5","id":22685502,"html_url":"https://github.com/framgia/fels_15/pull/5","diff_url":"https://github.com/framgia/fels_15/pull/5.diff","patch_url":"https://github.com/framgia/fels_15/pull/5.patch","issue_url":"https://api.github.com/repos/framgia/fels_15/issues/5","number":5,"state":"open","locked":false,"title":"login/logout","user":{"login":"nguyenvancanh","id":8893904,"avatar_url":"https://avatars.githubusercontent.com/u/8893904?v=2","gravatar_id":"","url":"https://api.github.com/users/nguyenvancanh","html_url":"https://github.com/nguyenvancanh","followers_url":"https://api.github.com/users/nguyenvancanh/followers","following_url":"https://api.github.com/users/nguyenvancanh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvancanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvancanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvancanh/subscriptions","organizations_url":"https://api.github.com/users/nguyenvancanh/orgs","repos_url":"https://api.github.com/users/nguyenvancanh/repos","events_url":"https://api.github.com/users/nguyenvancanh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvancanh/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-10-14T03:08:26Z","updated_at":"2014-10-14T03:17:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0e88399cb6137379df0eea185927d59783e8aa4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_15/pulls/5/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_15/pulls/5/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_15/pulls/comments/{number}","comments_url":"https://api.github.com/repos/framgia/fels_15/issues/5/comments","statuses_url":"https://api.github.com/repos/framgia/fels_15/statuses/b4cff6ca3dce5366497cd945dd2a4a379a958174","head":{"label":"nguyenvancanh:loginForm","ref":"loginForm","sha":"b4cff6ca3dce5366497cd945dd2a4a379a958174","user":{"login":"nguyenvancanh","id":8893904,"avatar_url":"https://avatars.githubusercontent.com/u/8893904?v=2","gravatar_id":"","url":"https://api.github.com/users/nguyenvancanh","html_url":"https://github.com/nguyenvancanh","followers_url":"https://api.github.com/users/nguyenvancanh/followers","following_url":"https://api.github.com/users/nguyenvancanh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvancanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvancanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvancanh/subscriptions","organizations_url":"https://api.github.com/users/nguyenvancanh/orgs","repos_url":"https://api.github.com/users/nguyenvancanh/repos","events_url":"https://api.github.com/users/nguyenvancanh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvancanh/received_events","type":"User","site_admin":false},"repo":{"id":24934330,"name":"fels_15","full_name":"nguyenvancanh/fels_15","owner":{"login":"nguyenvancanh","id":8893904,"avatar_url":"https://avatars.githubusercontent.com/u/8893904?v=2","gravatar_id":"","url":"https://api.github.com/users/nguyenvancanh","html_url":"https://github.com/nguyenvancanh","followers_url":"https://api.github.com/users/nguyenvancanh/followers","following_url":"https://api.github.com/users/nguyenvancanh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvancanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvancanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvancanh/subscriptions","organizations_url":"https://api.github.com/users/nguyenvancanh/orgs","repos_url":"https://api.github.com/users/nguyenvancanh/repos","events_url":"https://api.github.com/users/nguyenvancanh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvancanh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenvancanh/fels_15","description":"Framgia E-Learning System","fork":true,"url":"https://api.github.com/repos/nguyenvancanh/fels_15","forks_url":"https://api.github.com/repos/nguyenvancanh/fels_15/forks","keys_url":"https://api.github.com/repos/nguyenvancanh/fels_15/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenvancanh/fels_15/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenvancanh/fels_15/teams","hooks_url":"https://api.github.com/repos/nguyenvancanh/fels_15/hooks","issue_events_url":"https://api.github.com/repos/nguyenvancanh/fels_15/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenvancanh/fels_15/events","assignees_url":"https://api.github.com/repos/nguyenvancanh/fels_15/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenvancanh/fels_15/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenvancanh/fels_15/tags","blobs_url":"https://api.github.com/repos/nguyenvancanh/fels_15/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenvancanh/fels_15/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenvancanh/fels_15/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenvancanh/fels_15/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenvancanh/fels_15/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenvancanh/fels_15/languages","stargazers_url":"https://api.github.com/repos/nguyenvancanh/fels_15/stargazers","contributors_url":"https://api.github.com/repos/nguyenvancanh/fels_15/contributors","subscribers_url":"https://api.github.com/repos/nguyenvancanh/fels_15/subscribers","subscription_url":"https://api.github.com/repos/nguyenvancanh/fels_15/subscription","commits_url":"https://api.github.com/repos/nguyenvancanh/fels_15/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenvancanh/fels_15/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenvancanh/fels_15/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenvancanh/fels_15/issues/comments/{number}","contents_url":"https://api.github.com/repos/nguyenvancanh/fels_15/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenvancanh/fels_15/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenvancanh/fels_15/merges","archive_url":"https://api.github.com/repos/nguyenvancanh/fels_15/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenvancanh/fels_15/downloads","issues_url":"https://api.github.com/repos/nguyenvancanh/fels_15/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenvancanh/fels_15/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenvancanh/fels_15/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenvancanh/fels_15/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenvancanh/fels_15/labels{/name}","releases_url":"https://api.github.com/repos/nguyenvancanh/fels_15/releases{/id}","created_at":"2014-10-08T09:46:52Z","updated_at":"2014-10-08T06:54:31Z","pushed_at":"2014-10-14T03:06:59Z","git_url":"git://github.com/nguyenvancanh/fels_15.git","ssh_url":"git@github.com:nguyenvancanh/fels_15.git","clone_url":"https://github.com/nguyenvancanh/fels_15.git","svn_url":"https://github.com/nguyenvancanh/fels_15","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"framgia:develop","ref":"develop","sha":"fe5735f9c8685f16c31be7626f6c3d5b2d7f4532","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=2","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":24928306,"name":"fels_15","full_name":"framgia/fels_15","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=2","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_15","description":"Framgia E-Learning System","fork":false,"url":"https://api.github.com/repos/framgia/fels_15","forks_url":"https://api.github.com/repos/framgia/fels_15/forks","keys_url":"https://api.github.com/repos/framgia/fels_15/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_15/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_15/teams","hooks_url":"https://api.github.com/repos/framgia/fels_15/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_15/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_15/events","assignees_url":"https://api.github.com/repos/framgia/fels_15/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_15/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_15/tags","blobs_url":"https://api.github.com/repos/framgia/fels_15/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_15/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_15/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_15/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_15/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_15/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_15/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_15/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_15/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_15/subscription","commits_url":"https://api.github.com/repos/framgia/fels_15/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_15/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_15/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_15/issues/comments/{number}","contents_url":"https://api.github.com/repos/framgia/fels_15/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_15/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_15/merges","archive_url":"https://api.github.com/repos/framgia/fels_15/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_15/downloads","issues_url":"https://api.github.com/repos/framgia/fels_15/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_15/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_15/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_15/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_15/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_15/releases{/id}","created_at":"2014-10-08T06:54:31Z","updated_at":"2014-10-08T06:54:31Z","pushed_at":"2014-10-13T06:33:16Z","git_url":"git://github.com/framgia/fels_15.git","ssh_url":"git@github.com:framgia/fels_15.git","clone_url":"https://github.com/framgia/fels_15.git","svn_url":"https://github.com/framgia/fels_15","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_15/pulls/5"},"html":{"href":"https://github.com/framgia/fels_15/pull/5"},"issue":{"href":"https://api.github.com/repos/framgia/fels_15/issues/5"},"comments":{"href":"https://api.github.com/repos/framgia/fels_15/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_15/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_15/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_15/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_15/statuses/b4cff6ca3dce5366497cd945dd2a4a379a958174"}}}}