{"action":"created","comment":{"url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/comments/30014484","id":30014484,"diff_hunk":"@@ -0,0 +1,37 @@\n+<?php\n+class LoginController extends AppController \n+{\n+    public function login()\n+    {\n+        $isLoggedIn = false;\n+        $error = false;\n+        $url = '';\n+        if($isLoggedIn){\n+            $params = array(\n+                'username' => Param::get('username', ''),\n+                'password' => Param::get('password', '')\n+            );\n+            $login = new Login($params);\n+            try {\n+                $login->checkInput();\n+                $login->accept();\n+            } catch (ValidationException $e) {\n+                $error = true;\n+            } catch (RecordNotFoundException $e) {\n+                $login->error = true;\n+            }\n+            if (!$login->hasError() && !($error)) { \n+                $_POST['username'] = $login->username;\n+                eh(url('thread/index'));","path":"app/controllers/login_controller.php","position":25,"original_position":25,"commit_id":"f8bfc3735a6d94356e2baeb6f94f46a35ce27945","original_commit_id":"f8bfc3735a6d94356e2baeb6f94f46a35ce27945","user":{"login":"jm-factorin","id":2919310,"avatar_url":"https://avatars.githubusercontent.com/u/2919310?v=3","gravatar_id":"","url":"https://api.github.com/users/jm-factorin","html_url":"https://github.com/jm-factorin","followers_url":"https://api.github.com/users/jm-factorin/followers","following_url":"https://api.github.com/users/jm-factorin/following{/other_user}","gists_url":"https://api.github.com/users/jm-factorin/gists{/gist_id}","starred_url":"https://api.github.com/users/jm-factorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jm-factorin/subscriptions","organizations_url":"https://api.github.com/users/jm-factorin/orgs","repos_url":"https://api.github.com/users/jm-factorin/repos","events_url":"https://api.github.com/users/jm-factorin/events{/privacy}","received_events_url":"https://api.github.com/users/jm-factorin/received_events","type":"User","site_admin":false},"body":"why is the `eh` function called here po?","created_at":"2015-05-11T06:02:11Z","updated_at":"2015-05-11T06:02:11Z","html_url":"https://github.com/lawrence-agustin/DietCakeBoard/pull/1#discussion_r30014484","pull_request_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/comments/30014484"},"html":{"href":"https://github.com/lawrence-agustin/DietCakeBoard/pull/1#discussion_r30014484"},"pull_request":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1","id":34983898,"html_url":"https://github.com/lawrence-agustin/DietCakeBoard/pull/1","diff_url":"https://github.com/lawrence-agustin/DietCakeBoard/pull/1.diff","patch_url":"https://github.com/lawrence-agustin/DietCakeBoard/pull/1.patch","issue_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/1","number":1,"state":"open","locked":false,"title":"dev_1.0","user":{"login":"lawrence-agustin","id":11661188,"avatar_url":"https://avatars.githubusercontent.com/u/11661188?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrence-agustin","html_url":"https://github.com/lawrence-agustin","followers_url":"https://api.github.com/users/lawrence-agustin/followers","following_url":"https://api.github.com/users/lawrence-agustin/following{/other_user}","gists_url":"https://api.github.com/users/lawrence-agustin/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrence-agustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrence-agustin/subscriptions","organizations_url":"https://api.github.com/users/lawrence-agustin/orgs","repos_url":"https://api.github.com/users/lawrence-agustin/repos","events_url":"https://api.github.com/users/lawrence-agustin/events{/privacy}","received_events_url":"https://api.github.com/users/lawrence-agustin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-08T06:38:40Z","updated_at":"2015-05-11T06:02:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"600f39a35ba57c9174c5676ecc64d9cea879323b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/1/comments","statuses_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/statuses/f8bfc3735a6d94356e2baeb6f94f46a35ce27945","head":{"label":"lawrence-agustin:dev_1.0","ref":"dev_1.0","sha":"f8bfc3735a6d94356e2baeb6f94f46a35ce27945","user":{"login":"lawrence-agustin","id":11661188,"avatar_url":"https://avatars.githubusercontent.com/u/11661188?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrence-agustin","html_url":"https://github.com/lawrence-agustin","followers_url":"https://api.github.com/users/lawrence-agustin/followers","following_url":"https://api.github.com/users/lawrence-agustin/following{/other_user}","gists_url":"https://api.github.com/users/lawrence-agustin/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrence-agustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrence-agustin/subscriptions","organizations_url":"https://api.github.com/users/lawrence-agustin/orgs","repos_url":"https://api.github.com/users/lawrence-agustin/repos","events_url":"https://api.github.com/users/lawrence-agustin/events{/privacy}","received_events_url":"https://api.github.com/users/lawrence-agustin/received_events","type":"User","site_admin":false},"repo":{"id":34764998,"name":"DietCakeBoard","full_name":"lawrence-agustin/DietCakeBoard","owner":{"login":"lawrence-agustin","id":11661188,"avatar_url":"https://avatars.githubusercontent.com/u/11661188?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrence-agustin","html_url":"https://github.com/lawrence-agustin","followers_url":"https://api.github.com/users/lawrence-agustin/followers","following_url":"https://api.github.com/users/lawrence-agustin/following{/other_user}","gists_url":"https://api.github.com/users/lawrence-agustin/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrence-agustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrence-agustin/subscriptions","organizations_url":"https://api.github.com/users/lawrence-agustin/orgs","repos_url":"https://api.github.com/users/lawrence-agustin/repos","events_url":"https://api.github.com/users/lawrence-agustin/events{/privacy}","received_events_url":"https://api.github.com/users/lawrence-agustin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lawrence-agustin/DietCakeBoard","description":"","fork":false,"url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard","forks_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/forks","keys_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/teams","hooks_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/hooks","issue_events_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/events{/number}","events_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/events","assignees_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/assignees{/user}","branches_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/branches{/branch}","tags_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/tags","blobs_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/refs{/sha}","trees_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/statuses/{sha}","languages_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/languages","stargazers_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/stargazers","contributors_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/contributors","subscribers_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/subscribers","subscription_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/subscription","commits_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/commits{/sha}","git_commits_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/commits{/sha}","comments_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/comments{/number}","issue_comment_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/comments{/number}","contents_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/contents/{+path}","compare_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/merges","archive_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/downloads","issues_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues{/number}","pulls_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls{/number}","milestones_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/milestones{/number}","notifications_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/labels{/name}","releases_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/releases{/id}","created_at":"2015-04-29T01:17:40Z","updated_at":"2015-05-08T09:26:57Z","pushed_at":"2015-05-11T04:07:28Z","git_url":"git://github.com/lawrence-agustin/DietCakeBoard.git","ssh_url":"git@github.com:lawrence-agustin/DietCakeBoard.git","clone_url":"https://github.com/lawrence-agustin/DietCakeBoard.git","svn_url":"https://github.com/lawrence-agustin/DietCakeBoard","homepage":null,"size":264,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev_1.0"}},"base":{"label":"lawrence-agustin:master","ref":"master","sha":"9c3ca0841c63809fb54444f2879b57cd9aaa6be0","user":{"login":"lawrence-agustin","id":11661188,"avatar_url":"https://avatars.githubusercontent.com/u/11661188?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrence-agustin","html_url":"https://github.com/lawrence-agustin","followers_url":"https://api.github.com/users/lawrence-agustin/followers","following_url":"https://api.github.com/users/lawrence-agustin/following{/other_user}","gists_url":"https://api.github.com/users/lawrence-agustin/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrence-agustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrence-agustin/subscriptions","organizations_url":"https://api.github.com/users/lawrence-agustin/orgs","repos_url":"https://api.github.com/users/lawrence-agustin/repos","events_url":"https://api.github.com/users/lawrence-agustin/events{/privacy}","received_events_url":"https://api.github.com/users/lawrence-agustin/received_events","type":"User","site_admin":false},"repo":{"id":34764998,"name":"DietCakeBoard","full_name":"lawrence-agustin/DietCakeBoard","owner":{"login":"lawrence-agustin","id":11661188,"avatar_url":"https://avatars.githubusercontent.com/u/11661188?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrence-agustin","html_url":"https://github.com/lawrence-agustin","followers_url":"https://api.github.com/users/lawrence-agustin/followers","following_url":"https://api.github.com/users/lawrence-agustin/following{/other_user}","gists_url":"https://api.github.com/users/lawrence-agustin/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrence-agustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrence-agustin/subscriptions","organizations_url":"https://api.github.com/users/lawrence-agustin/orgs","repos_url":"https://api.github.com/users/lawrence-agustin/repos","events_url":"https://api.github.com/users/lawrence-agustin/events{/privacy}","received_events_url":"https://api.github.com/users/lawrence-agustin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lawrence-agustin/DietCakeBoard","description":"","fork":false,"url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard","forks_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/forks","keys_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/teams","hooks_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/hooks","issue_events_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/events{/number}","events_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/events","assignees_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/assignees{/user}","branches_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/branches{/branch}","tags_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/tags","blobs_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/refs{/sha}","trees_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/statuses/{sha}","languages_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/languages","stargazers_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/stargazers","contributors_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/contributors","subscribers_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/subscribers","subscription_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/subscription","commits_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/commits{/sha}","git_commits_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/git/commits{/sha}","comments_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/comments{/number}","issue_comment_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/comments{/number}","contents_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/contents/{+path}","compare_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/merges","archive_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/downloads","issues_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues{/number}","pulls_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls{/number}","milestones_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/milestones{/number}","notifications_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/labels{/name}","releases_url":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/releases{/id}","created_at":"2015-04-29T01:17:40Z","updated_at":"2015-05-08T09:26:57Z","pushed_at":"2015-05-11T04:07:28Z","git_url":"git://github.com/lawrence-agustin/DietCakeBoard.git","ssh_url":"git@github.com:lawrence-agustin/DietCakeBoard.git","clone_url":"https://github.com/lawrence-agustin/DietCakeBoard.git","svn_url":"https://github.com/lawrence-agustin/DietCakeBoard","homepage":null,"size":264,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev_1.0"}},"_links":{"self":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1"},"html":{"href":"https://github.com/lawrence-agustin/DietCakeBoard/pull/1"},"issue":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/1"},"comments":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lawrence-agustin/DietCakeBoard/statuses/f8bfc3735a6d94356e2baeb6f94f46a35ce27945"}}}}