{"action":"created","comment":{"url":"https://api.github.com/repos/linkernetworks/oauth/pulls/comments/199674085","pull_request_review_id":133837870,"id":199674085,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTY3NDA4NQ==","diff_hunk":"@@ -0,0 +1,29 @@\n+package httphandler\n+\n+import (\n+\t\"github.com/gin-gonic/gin\"\n+)\n+\n+func LoginPage(c *gin.Context) {\n+\n+\ts := `\n+<html>\n+    <body>\n+\t\t<form class=\"ui form\" method=\"POST\" action=\"/api/login\">\n+\t\t\t<h4>Login</h4>\n+\t\t\t<div>\n+\t\t\t\t<label>Email</label>\n+\t\t\t\t<input type=\"text\" placeholder=\"email\" name=\"email\">\n+\t\t\t</div>\n+\t\t\t<div>\n+\t\t\t\t<label>Password</label>\n+\t\t\t\t<input type=\"password\" placeholder=\"password\" name=\"password\">\n+\t\t\t</div>\n+\t\t\t<input type=\"submit\" value=\"Submmit\">\n+\t\t</form>\n+    </body>\n+</html>\n+\t`","path":"src/httphandler/login_page.go","position":26,"original_position":26,"commit_id":"ac55ce1ca473c3d7aece5bfa5b72282c7cfb5adf","original_commit_id":"ac55ce1ca473c3d7aece5bfa5b72282c7cfb5adf","user":{"login":"zyfdegh","id":7880217,"node_id":"MDQ6VXNlcjc4ODAyMTc=","avatar_url":"https://avatars0.githubusercontent.com/u/7880217?v=4","gravatar_id":"","url":"https://api.github.com/users/zyfdegh","html_url":"https://github.com/zyfdegh","followers_url":"https://api.github.com/users/zyfdegh/followers","following_url":"https://api.github.com/users/zyfdegh/following{/other_user}","gists_url":"https://api.github.com/users/zyfdegh/gists{/gist_id}","starred_url":"https://api.github.com/users/zyfdegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyfdegh/subscriptions","organizations_url":"https://api.github.com/users/zyfdegh/orgs","repos_url":"https://api.github.com/users/zyfdegh/repos","events_url":"https://api.github.com/users/zyfdegh/events{/privacy}","received_events_url":"https://api.github.com/users/zyfdegh/received_events","type":"User","site_admin":false},"body":"It's better to load the template from a `.tpl` file.","created_at":"2018-07-03T03:22:08Z","updated_at":"2018-07-03T03:22:09Z","html_url":"https://github.com/linkernetworks/oauth/pull/14#discussion_r199674085","pull_request_url":"https://api.github.com/repos/linkernetworks/oauth/pulls/14","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/linkernetworks/oauth/pulls/comments/199674085"},"html":{"href":"https://github.com/linkernetworks/oauth/pull/14#discussion_r199674085"},"pull_request":{"href":"https://api.github.com/repos/linkernetworks/oauth/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/linkernetworks/oauth/pulls/14","id":197926564,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3OTI2NTY0","html_url":"https://github.com/linkernetworks/oauth/pull/14","diff_url":"https://github.com/linkernetworks/oauth/pull/14.diff","patch_url":"https://github.com/linkernetworks/oauth/pull/14.patch","issue_url":"https://api.github.com/repos/linkernetworks/oauth/issues/14","number":14,"state":"open","locked":false,"title":" VX-140: Add simple login UI","user":{"login":"yarencheng","id":12826604,"node_id":"MDQ6VXNlcjEyODI2NjA0","avatar_url":"https://avatars1.githubusercontent.com/u/12826604?v=4","gravatar_id":"","url":"https://api.github.com/users/yarencheng","html_url":"https://github.com/yarencheng","followers_url":"https://api.github.com/users/yarencheng/followers","following_url":"https://api.github.com/users/yarencheng/following{/other_user}","gists_url":"https://api.github.com/users/yarencheng/gists{/gist_id}","starred_url":"https://api.github.com/users/yarencheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarencheng/subscriptions","organizations_url":"https://api.github.com/users/yarencheng/orgs","repos_url":"https://api.github.com/users/yarencheng/repos","events_url":"https://api.github.com/users/yarencheng/events{/privacy}","received_events_url":"https://api.github.com/users/yarencheng/received_events","type":"User","site_admin":false},"body":"Depends on PR #13 ","created_at":"2018-06-28T06:13:15Z","updated_at":"2018-07-03T03:22:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bc808ca61497ba089c410df67aa65b88ef9ce56","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hwchiu","id":1932305,"node_id":"MDQ6VXNlcjE5MzIzMDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1932305?v=4","gravatar_id":"","url":"https://api.github.com/users/hwchiu","html_url":"https://github.com/hwchiu","followers_url":"https://api.github.com/users/hwchiu/followers","following_url":"https://api.github.com/users/hwchiu/following{/other_user}","gists_url":"https://api.github.com/users/hwchiu/gists{/gist_id}","starred_url":"https://api.github.com/users/hwchiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwchiu/subscriptions","organizations_url":"https://api.github.com/users/hwchiu/orgs","repos_url":"https://api.github.com/users/hwchiu/repos","events_url":"https://api.github.com/users/hwchiu/events{/privacy}","received_events_url":"https://api.github.com/users/hwchiu/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/linkernetworks/oauth/pulls/14/commits","review_comments_url":"https://api.github.com/repos/linkernetworks/oauth/pulls/14/comments","review_comment_url":"https://api.github.com/repos/linkernetworks/oauth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linkernetworks/oauth/issues/14/comments","statuses_url":"https://api.github.com/repos/linkernetworks/oauth/statuses/ac55ce1ca473c3d7aece5bfa5b72282c7cfb5adf","head":{"label":"linkernetworks:aren/VX-140-login-ui","ref":"aren/VX-140-login-ui","sha":"ac55ce1ca473c3d7aece5bfa5b72282c7cfb5adf","user":{"login":"linkernetworks","id":16631987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjMxOTg3","avatar_url":"https://avatars2.githubusercontent.com/u/16631987?v=4","gravatar_id":"","url":"https://api.github.com/users/linkernetworks","html_url":"https://github.com/linkernetworks","followers_url":"https://api.github.com/users/linkernetworks/followers","following_url":"https://api.github.com/users/linkernetworks/following{/other_user}","gists_url":"https://api.github.com/users/linkernetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/linkernetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkernetworks/subscriptions","organizations_url":"https://api.github.com/users/linkernetworks/orgs","repos_url":"https://api.github.com/users/linkernetworks/repos","events_url":"https://api.github.com/users/linkernetworks/events{/privacy}","received_events_url":"https://api.github.com/users/linkernetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":135102085,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUxMDIwODU=","name":"oauth","full_name":"linkernetworks/oauth","owner":{"login":"linkernetworks","id":16631987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjMxOTg3","avatar_url":"https://avatars2.githubusercontent.com/u/16631987?v=4","gravatar_id":"","url":"https://api.github.com/users/linkernetworks","html_url":"https://github.com/linkernetworks","followers_url":"https://api.github.com/users/linkernetworks/followers","following_url":"https://api.github.com/users/linkernetworks/following{/other_user}","gists_url":"https://api.github.com/users/linkernetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/linkernetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkernetworks/subscriptions","organizations_url":"https://api.github.com/users/linkernetworks/orgs","repos_url":"https://api.github.com/users/linkernetworks/repos","events_url":"https://api.github.com/users/linkernetworks/events{/privacy}","received_events_url":"https://api.github.com/users/linkernetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linkernetworks/oauth","description":"LinkerNetwork OAuth Server","fork":false,"url":"https://api.github.com/repos/linkernetworks/oauth","forks_url":"https://api.github.com/repos/linkernetworks/oauth/forks","keys_url":"https://api.github.com/repos/linkernetworks/oauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linkernetworks/oauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linkernetworks/oauth/teams","hooks_url":"https://api.github.com/repos/linkernetworks/oauth/hooks","issue_events_url":"https://api.github.com/repos/linkernetworks/oauth/issues/events{/number}","events_url":"https://api.github.com/repos/linkernetworks/oauth/events","assignees_url":"https://api.github.com/repos/linkernetworks/oauth/assignees{/user}","branches_url":"https://api.github.com/repos/linkernetworks/oauth/branches{/branch}","tags_url":"https://api.github.com/repos/linkernetworks/oauth/tags","blobs_url":"https://api.github.com/repos/linkernetworks/oauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linkernetworks/oauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linkernetworks/oauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/linkernetworks/oauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linkernetworks/oauth/statuses/{sha}","languages_url":"https://api.github.com/repos/linkernetworks/oauth/languages","stargazers_url":"https://api.github.com/repos/linkernetworks/oauth/stargazers","contributors_url":"https://api.github.com/repos/linkernetworks/oauth/contributors","subscribers_url":"https://api.github.com/repos/linkernetworks/oauth/subscribers","subscription_url":"https://api.github.com/repos/linkernetworks/oauth/subscription","commits_url":"https://api.github.com/repos/linkernetworks/oauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/linkernetworks/oauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/linkernetworks/oauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/linkernetworks/oauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/linkernetworks/oauth/contents/{+path}","compare_url":"https://api.github.com/repos/linkernetworks/oauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linkernetworks/oauth/merges","archive_url":"https://api.github.com/repos/linkernetworks/oauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linkernetworks/oauth/downloads","issues_url":"https://api.github.com/repos/linkernetworks/oauth/issues{/number}","pulls_url":"https://api.github.com/repos/linkernetworks/oauth/pulls{/number}","milestones_url":"https://api.github.com/repos/linkernetworks/oauth/milestones{/number}","notifications_url":"https://api.github.com/repos/linkernetworks/oauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linkernetworks/oauth/labels{/name}","releases_url":"https://api.github.com/repos/linkernetworks/oauth/releases{/id}","deployments_url":"https://api.github.com/repos/linkernetworks/oauth/deployments","created_at":"2018-05-28T02:51:07Z","updated_at":"2018-06-29T07:35:06Z","pushed_at":"2018-07-02T05:33:48Z","git_url":"git://github.com/linkernetworks/oauth.git","ssh_url":"git@github.com:linkernetworks/oauth.git","clone_url":"https://github.com/linkernetworks/oauth.git","svn_url":"https://github.com/linkernetworks/oauth","homepage":"","size":133,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":4,"default_branch":"develop"}},"base":{"label":"linkernetworks:develop","ref":"develop","sha":"ba9119aba55b8a2c4c0255ac03c64eaaf7ea65bd","user":{"login":"linkernetworks","id":16631987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjMxOTg3","avatar_url":"https://avatars2.githubusercontent.com/u/16631987?v=4","gravatar_id":"","url":"https://api.github.com/users/linkernetworks","html_url":"https://github.com/linkernetworks","followers_url":"https://api.github.com/users/linkernetworks/followers","following_url":"https://api.github.com/users/linkernetworks/following{/other_user}","gists_url":"https://api.github.com/users/linkernetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/linkernetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkernetworks/subscriptions","organizations_url":"https://api.github.com/users/linkernetworks/orgs","repos_url":"https://api.github.com/users/linkernetworks/repos","events_url":"https://api.github.com/users/linkernetworks/events{/privacy}","received_events_url":"https://api.github.com/users/linkernetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":135102085,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUxMDIwODU=","name":"oauth","full_name":"linkernetworks/oauth","owner":{"login":"linkernetworks","id":16631987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjMxOTg3","avatar_url":"https://avatars2.githubusercontent.com/u/16631987?v=4","gravatar_id":"","url":"https://api.github.com/users/linkernetworks","html_url":"https://github.com/linkernetworks","followers_url":"https://api.github.com/users/linkernetworks/followers","following_url":"https://api.github.com/users/linkernetworks/following{/other_user}","gists_url":"https://api.github.com/users/linkernetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/linkernetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkernetworks/subscriptions","organizations_url":"https://api.github.com/users/linkernetworks/orgs","repos_url":"https://api.github.com/users/linkernetworks/repos","events_url":"https://api.github.com/users/linkernetworks/events{/privacy}","received_events_url":"https://api.github.com/users/linkernetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linkernetworks/oauth","description":"LinkerNetwork OAuth Server","fork":false,"url":"https://api.github.com/repos/linkernetworks/oauth","forks_url":"https://api.github.com/repos/linkernetworks/oauth/forks","keys_url":"https://api.github.com/repos/linkernetworks/oauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linkernetworks/oauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linkernetworks/oauth/teams","hooks_url":"https://api.github.com/repos/linkernetworks/oauth/hooks","issue_events_url":"https://api.github.com/repos/linkernetworks/oauth/issues/events{/number}","events_url":"https://api.github.com/repos/linkernetworks/oauth/events","assignees_url":"https://api.github.com/repos/linkernetworks/oauth/assignees{/user}","branches_url":"https://api.github.com/repos/linkernetworks/oauth/branches{/branch}","tags_url":"https://api.github.com/repos/linkernetworks/oauth/tags","blobs_url":"https://api.github.com/repos/linkernetworks/oauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linkernetworks/oauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linkernetworks/oauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/linkernetworks/oauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linkernetworks/oauth/statuses/{sha}","languages_url":"https://api.github.com/repos/linkernetworks/oauth/languages","stargazers_url":"https://api.github.com/repos/linkernetworks/oauth/stargazers","contributors_url":"https://api.github.com/repos/linkernetworks/oauth/contributors","subscribers_url":"https://api.github.com/repos/linkernetworks/oauth/subscribers","subscription_url":"https://api.github.com/repos/linkernetworks/oauth/subscription","commits_url":"https://api.github.com/repos/linkernetworks/oauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/linkernetworks/oauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/linkernetworks/oauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/linkernetworks/oauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/linkernetworks/oauth/contents/{+path}","compare_url":"https://api.github.com/repos/linkernetworks/oauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linkernetworks/oauth/merges","archive_url":"https://api.github.com/repos/linkernetworks/oauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linkernetworks/oauth/downloads","issues_url":"https://api.github.com/repos/linkernetworks/oauth/issues{/number}","pulls_url":"https://api.github.com/repos/linkernetworks/oauth/pulls{/number}","milestones_url":"https://api.github.com/repos/linkernetworks/oauth/milestones{/number}","notifications_url":"https://api.github.com/repos/linkernetworks/oauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linkernetworks/oauth/labels{/name}","releases_url":"https://api.github.com/repos/linkernetworks/oauth/releases{/id}","deployments_url":"https://api.github.com/repos/linkernetworks/oauth/deployments","created_at":"2018-05-28T02:51:07Z","updated_at":"2018-06-29T07:35:06Z","pushed_at":"2018-07-02T05:33:48Z","git_url":"git://github.com/linkernetworks/oauth.git","ssh_url":"git@github.com:linkernetworks/oauth.git","clone_url":"https://github.com/linkernetworks/oauth.git","svn_url":"https://github.com/linkernetworks/oauth","homepage":"","size":133,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/linkernetworks/oauth/pulls/14"},"html":{"href":"https://github.com/linkernetworks/oauth/pull/14"},"issue":{"href":"https://api.github.com/repos/linkernetworks/oauth/issues/14"},"comments":{"href":"https://api.github.com/repos/linkernetworks/oauth/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/linkernetworks/oauth/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/linkernetworks/oauth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linkernetworks/oauth/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/linkernetworks/oauth/statuses/ac55ce1ca473c3d7aece5bfa5b72282c7cfb5adf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zyfdegh"}}