{"action":"created","comment":{"url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/comments/199285675","pull_request_review_id":133384596,"id":199285675,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTI4NTY3NQ==","diff_hunk":"@@ -1,21 +1,59 @@\n <template>\n   <div>\n-    <h2>Authentication</h2>\n-    <p>This page is mocked up.</p>\n-    <p>You're going to be automatically logged-in.</p>\n+    <div class=\"centered\">\n+      <h1>Authentication</h1><br>\n+      <h2>User</h2><br>\n+      <input v-model=\"typedUser\"><br>\n+      <h2>Password</h2><br>\n+      <input type=\"password\" v-model=\"typedPassword\"><br><br><br>\n+      <button @click=\"verifyUsers\" @click.prevent=\"login\">Login</button><br>\n+      <!--<p>This page is mocked up.</p>\n+      <p>You're going to be automatically logged-in.</p>-->\n+    </div>\n   </div>\n </template>\n \n <script>\n export default {\n   name: 'AboutPage',\n+  data: () => ({\n+    typedUser: '',\n+    typedPassword: '',\n+    realUser: false,\n+    loginPermission: false,\n+    users: [\n+      {\n+        id: 1,\n+        user: 'Pancudinho',\n+        password: 'Spider'\n+      }\n+    ]\n+  }),\n \n   props: {\n     state: Object\n   },\n \n-  created () {\n-    setTimeout(() => this.state.authenticate('Pançudinho'), 3000)\n+  methods: {\n+    verifyUsers () {\n+      for (let i = 0; i < this.users.length; i++) {\n+        if ((this.typedUser === this.users[i].user) && (this.typedPassword === this.users[i].password)) {\n+          this.realUser = true\n+          this.loginPermission = true\n+        } else if ((this.typedUser === this.users[i].user) && (this.typedPassword !== this.users[i].password)) {\n+          this.realUser = true\n+        }\n+      }\n+    },\n+    login () {\n+      if (this.realUser && this.loginPermission) {\n+        this.state.authenticate(this.typedUser)\n+      } else if (this.realUser && !this.loginPermission) {\n+        alert('Wrong Password')","path":"src/components/pages/Authentication.vue","position":57,"original_position":57,"commit_id":"a70d01d95348944fa3b4232449d1037e6b3368a8","original_commit_id":"a70d01d95348944fa3b4232449d1037e6b3368a8","user":{"login":"lubien","id":9121359,"node_id":"MDQ6VXNlcjkxMjEzNTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9121359?v=4","gravatar_id":"","url":"https://api.github.com/users/lubien","html_url":"https://github.com/lubien","followers_url":"https://api.github.com/users/lubien/followers","following_url":"https://api.github.com/users/lubien/following{/other_user}","gists_url":"https://api.github.com/users/lubien/gists{/gist_id}","starred_url":"https://api.github.com/users/lubien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lubien/subscriptions","organizations_url":"https://api.github.com/users/lubien/orgs","repos_url":"https://api.github.com/users/lubien/repos","events_url":"https://api.github.com/users/lubien/events{/privacy}","received_events_url":"https://api.github.com/users/lubien/received_events","type":"User","site_admin":false},"body":"No alerts","created_at":"2018-06-29T21:35:13Z","updated_at":"2018-06-29T21:35:17Z","html_url":"https://github.com/projeto-spider/pancudinho/pull/57#discussion_r199285675","pull_request_url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/comments/199285675"},"html":{"href":"https://github.com/projeto-spider/pancudinho/pull/57#discussion_r199285675"},"pull_request":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57","id":198379146,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4Mzc5MTQ2","html_url":"https://github.com/projeto-spider/pancudinho/pull/57","diff_url":"https://github.com/projeto-spider/pancudinho/pull/57.diff","patch_url":"https://github.com/projeto-spider/pancudinho/pull/57.patch","issue_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues/57","number":57,"state":"open","locked":false,"title":"Creation of Login System","user":{"login":"TubyNeto","id":32716494,"node_id":"MDQ6VXNlcjMyNzE2NDk0","avatar_url":"https://avatars3.githubusercontent.com/u/32716494?v=4","gravatar_id":"","url":"https://api.github.com/users/TubyNeto","html_url":"https://github.com/TubyNeto","followers_url":"https://api.github.com/users/TubyNeto/followers","following_url":"https://api.github.com/users/TubyNeto/following{/other_user}","gists_url":"https://api.github.com/users/TubyNeto/gists{/gist_id}","starred_url":"https://api.github.com/users/TubyNeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TubyNeto/subscriptions","organizations_url":"https://api.github.com/users/TubyNeto/orgs","repos_url":"https://api.github.com/users/TubyNeto/repos","events_url":"https://api.github.com/users/TubyNeto/events{/privacy}","received_events_url":"https://api.github.com/users/TubyNeto/received_events","type":"User","site_admin":false},"body":"Resolved issue #36 ","created_at":"2018-06-29T17:32:08Z","updated_at":"2018-06-29T21:35:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f7b590e585a07eb382d81a3084223f61e2f96da","assignee":{"login":"TubyNeto","id":32716494,"node_id":"MDQ6VXNlcjMyNzE2NDk0","avatar_url":"https://avatars3.githubusercontent.com/u/32716494?v=4","gravatar_id":"","url":"https://api.github.com/users/TubyNeto","html_url":"https://github.com/TubyNeto","followers_url":"https://api.github.com/users/TubyNeto/followers","following_url":"https://api.github.com/users/TubyNeto/following{/other_user}","gists_url":"https://api.github.com/users/TubyNeto/gists{/gist_id}","starred_url":"https://api.github.com/users/TubyNeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TubyNeto/subscriptions","organizations_url":"https://api.github.com/users/TubyNeto/orgs","repos_url":"https://api.github.com/users/TubyNeto/repos","events_url":"https://api.github.com/users/TubyNeto/events{/privacy}","received_events_url":"https://api.github.com/users/TubyNeto/received_events","type":"User","site_admin":false},"assignees":[{"login":"TubyNeto","id":32716494,"node_id":"MDQ6VXNlcjMyNzE2NDk0","avatar_url":"https://avatars3.githubusercontent.com/u/32716494?v=4","gravatar_id":"","url":"https://api.github.com/users/TubyNeto","html_url":"https://github.com/TubyNeto","followers_url":"https://api.github.com/users/TubyNeto/followers","following_url":"https://api.github.com/users/TubyNeto/following{/other_user}","gists_url":"https://api.github.com/users/TubyNeto/gists{/gist_id}","starred_url":"https://api.github.com/users/TubyNeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TubyNeto/subscriptions","organizations_url":"https://api.github.com/users/TubyNeto/orgs","repos_url":"https://api.github.com/users/TubyNeto/repos","events_url":"https://api.github.com/users/TubyNeto/events{/privacy}","received_events_url":"https://api.github.com/users/TubyNeto/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":899451729,"node_id":"MDU6TGFiZWw4OTk0NTE3Mjk=","url":"https://api.github.com/repos/projeto-spider/pancudinho/labels/bug","name":"bug","color":"d73a4a","default":true}],"milestone":{"url":"https://api.github.com/repos/projeto-spider/pancudinho/milestones/1","html_url":"https://github.com/projeto-spider/pancudinho/milestone/1","labels_url":"https://api.github.com/repos/projeto-spider/pancudinho/milestones/1/labels","id":3359077,"node_id":"MDk6TWlsZXN0b25lMzM1OTA3Nw==","number":1,"title":"Make Pancudinho's game Scripted","description":"","creator":{"login":"henriquesponte","id":35631991,"node_id":"MDQ6VXNlcjM1NjMxOTkx","avatar_url":"https://avatars1.githubusercontent.com/u/35631991?v=4","gravatar_id":"","url":"https://api.github.com/users/henriquesponte","html_url":"https://github.com/henriquesponte","followers_url":"https://api.github.com/users/henriquesponte/followers","following_url":"https://api.github.com/users/henriquesponte/following{/other_user}","gists_url":"https://api.github.com/users/henriquesponte/gists{/gist_id}","starred_url":"https://api.github.com/users/henriquesponte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriquesponte/subscriptions","organizations_url":"https://api.github.com/users/henriquesponte/orgs","repos_url":"https://api.github.com/users/henriquesponte/repos","events_url":"https://api.github.com/users/henriquesponte/events{/privacy}","received_events_url":"https://api.github.com/users/henriquesponte/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":22,"state":"open","created_at":"2018-05-20T00:42:33Z","updated_at":"2018-06-29T21:34:17Z","due_on":"2018-07-02T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57/commits","review_comments_url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57/comments","review_comment_url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues/57/comments","statuses_url":"https://api.github.com/repos/projeto-spider/pancudinho/statuses/a70d01d95348944fa3b4232449d1037e6b3368a8","head":{"label":"projeto-spider:issues-36","ref":"issues-36","sha":"a70d01d95348944fa3b4232449d1037e6b3368a8","user":{"login":"projeto-spider","id":22007467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDA3NDY3","avatar_url":"https://avatars1.githubusercontent.com/u/22007467?v=4","gravatar_id":"","url":"https://api.github.com/users/projeto-spider","html_url":"https://github.com/projeto-spider","followers_url":"https://api.github.com/users/projeto-spider/followers","following_url":"https://api.github.com/users/projeto-spider/following{/other_user}","gists_url":"https://api.github.com/users/projeto-spider/gists{/gist_id}","starred_url":"https://api.github.com/users/projeto-spider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projeto-spider/subscriptions","organizations_url":"https://api.github.com/users/projeto-spider/orgs","repos_url":"https://api.github.com/users/projeto-spider/repos","events_url":"https://api.github.com/users/projeto-spider/events{/privacy}","received_events_url":"https://api.github.com/users/projeto-spider/received_events","type":"Organization","site_admin":false},"repo":{"id":129247257,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkyNDcyNTc=","name":"pancudinho","full_name":"projeto-spider/pancudinho","owner":{"login":"projeto-spider","id":22007467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDA3NDY3","avatar_url":"https://avatars1.githubusercontent.com/u/22007467?v=4","gravatar_id":"","url":"https://api.github.com/users/projeto-spider","html_url":"https://github.com/projeto-spider","followers_url":"https://api.github.com/users/projeto-spider/followers","following_url":"https://api.github.com/users/projeto-spider/following{/other_user}","gists_url":"https://api.github.com/users/projeto-spider/gists{/gist_id}","starred_url":"https://api.github.com/users/projeto-spider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projeto-spider/subscriptions","organizations_url":"https://api.github.com/users/projeto-spider/orgs","repos_url":"https://api.github.com/users/projeto-spider/repos","events_url":"https://api.github.com/users/projeto-spider/events{/privacy}","received_events_url":"https://api.github.com/users/projeto-spider/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projeto-spider/pancudinho","description":null,"fork":false,"url":"https://api.github.com/repos/projeto-spider/pancudinho","forks_url":"https://api.github.com/repos/projeto-spider/pancudinho/forks","keys_url":"https://api.github.com/repos/projeto-spider/pancudinho/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projeto-spider/pancudinho/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projeto-spider/pancudinho/teams","hooks_url":"https://api.github.com/repos/projeto-spider/pancudinho/hooks","issue_events_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues/events{/number}","events_url":"https://api.github.com/repos/projeto-spider/pancudinho/events","assignees_url":"https://api.github.com/repos/projeto-spider/pancudinho/assignees{/user}","branches_url":"https://api.github.com/repos/projeto-spider/pancudinho/branches{/branch}","tags_url":"https://api.github.com/repos/projeto-spider/pancudinho/tags","blobs_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/refs{/sha}","trees_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projeto-spider/pancudinho/statuses/{sha}","languages_url":"https://api.github.com/repos/projeto-spider/pancudinho/languages","stargazers_url":"https://api.github.com/repos/projeto-spider/pancudinho/stargazers","contributors_url":"https://api.github.com/repos/projeto-spider/pancudinho/contributors","subscribers_url":"https://api.github.com/repos/projeto-spider/pancudinho/subscribers","subscription_url":"https://api.github.com/repos/projeto-spider/pancudinho/subscription","commits_url":"https://api.github.com/repos/projeto-spider/pancudinho/commits{/sha}","git_commits_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/commits{/sha}","comments_url":"https://api.github.com/repos/projeto-spider/pancudinho/comments{/number}","issue_comment_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues/comments{/number}","contents_url":"https://api.github.com/repos/projeto-spider/pancudinho/contents/{+path}","compare_url":"https://api.github.com/repos/projeto-spider/pancudinho/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projeto-spider/pancudinho/merges","archive_url":"https://api.github.com/repos/projeto-spider/pancudinho/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projeto-spider/pancudinho/downloads","issues_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues{/number}","pulls_url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls{/number}","milestones_url":"https://api.github.com/repos/projeto-spider/pancudinho/milestones{/number}","notifications_url":"https://api.github.com/repos/projeto-spider/pancudinho/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projeto-spider/pancudinho/labels{/name}","releases_url":"https://api.github.com/repos/projeto-spider/pancudinho/releases{/id}","deployments_url":"https://api.github.com/repos/projeto-spider/pancudinho/deployments","created_at":"2018-04-12T12:24:39Z","updated_at":"2018-06-29T14:43:32Z","pushed_at":"2018-06-29T21:34:21Z","git_url":"git://github.com/projeto-spider/pancudinho.git","ssh_url":"git@github.com:projeto-spider/pancudinho.git","clone_url":"https://github.com/projeto-spider/pancudinho.git","svn_url":"https://github.com/projeto-spider/pancudinho","homepage":null,"size":1366,"stargazers_count":0,"watchers_count":0,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"projeto-spider:engine","ref":"engine","sha":"b88e74687e6a22f3e79e519ec895d2715fde508b","user":{"login":"projeto-spider","id":22007467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDA3NDY3","avatar_url":"https://avatars1.githubusercontent.com/u/22007467?v=4","gravatar_id":"","url":"https://api.github.com/users/projeto-spider","html_url":"https://github.com/projeto-spider","followers_url":"https://api.github.com/users/projeto-spider/followers","following_url":"https://api.github.com/users/projeto-spider/following{/other_user}","gists_url":"https://api.github.com/users/projeto-spider/gists{/gist_id}","starred_url":"https://api.github.com/users/projeto-spider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projeto-spider/subscriptions","organizations_url":"https://api.github.com/users/projeto-spider/orgs","repos_url":"https://api.github.com/users/projeto-spider/repos","events_url":"https://api.github.com/users/projeto-spider/events{/privacy}","received_events_url":"https://api.github.com/users/projeto-spider/received_events","type":"Organization","site_admin":false},"repo":{"id":129247257,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkyNDcyNTc=","name":"pancudinho","full_name":"projeto-spider/pancudinho","owner":{"login":"projeto-spider","id":22007467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDA3NDY3","avatar_url":"https://avatars1.githubusercontent.com/u/22007467?v=4","gravatar_id":"","url":"https://api.github.com/users/projeto-spider","html_url":"https://github.com/projeto-spider","followers_url":"https://api.github.com/users/projeto-spider/followers","following_url":"https://api.github.com/users/projeto-spider/following{/other_user}","gists_url":"https://api.github.com/users/projeto-spider/gists{/gist_id}","starred_url":"https://api.github.com/users/projeto-spider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projeto-spider/subscriptions","organizations_url":"https://api.github.com/users/projeto-spider/orgs","repos_url":"https://api.github.com/users/projeto-spider/repos","events_url":"https://api.github.com/users/projeto-spider/events{/privacy}","received_events_url":"https://api.github.com/users/projeto-spider/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projeto-spider/pancudinho","description":null,"fork":false,"url":"https://api.github.com/repos/projeto-spider/pancudinho","forks_url":"https://api.github.com/repos/projeto-spider/pancudinho/forks","keys_url":"https://api.github.com/repos/projeto-spider/pancudinho/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projeto-spider/pancudinho/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projeto-spider/pancudinho/teams","hooks_url":"https://api.github.com/repos/projeto-spider/pancudinho/hooks","issue_events_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues/events{/number}","events_url":"https://api.github.com/repos/projeto-spider/pancudinho/events","assignees_url":"https://api.github.com/repos/projeto-spider/pancudinho/assignees{/user}","branches_url":"https://api.github.com/repos/projeto-spider/pancudinho/branches{/branch}","tags_url":"https://api.github.com/repos/projeto-spider/pancudinho/tags","blobs_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/refs{/sha}","trees_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projeto-spider/pancudinho/statuses/{sha}","languages_url":"https://api.github.com/repos/projeto-spider/pancudinho/languages","stargazers_url":"https://api.github.com/repos/projeto-spider/pancudinho/stargazers","contributors_url":"https://api.github.com/repos/projeto-spider/pancudinho/contributors","subscribers_url":"https://api.github.com/repos/projeto-spider/pancudinho/subscribers","subscription_url":"https://api.github.com/repos/projeto-spider/pancudinho/subscription","commits_url":"https://api.github.com/repos/projeto-spider/pancudinho/commits{/sha}","git_commits_url":"https://api.github.com/repos/projeto-spider/pancudinho/git/commits{/sha}","comments_url":"https://api.github.com/repos/projeto-spider/pancudinho/comments{/number}","issue_comment_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues/comments{/number}","contents_url":"https://api.github.com/repos/projeto-spider/pancudinho/contents/{+path}","compare_url":"https://api.github.com/repos/projeto-spider/pancudinho/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projeto-spider/pancudinho/merges","archive_url":"https://api.github.com/repos/projeto-spider/pancudinho/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projeto-spider/pancudinho/downloads","issues_url":"https://api.github.com/repos/projeto-spider/pancudinho/issues{/number}","pulls_url":"https://api.github.com/repos/projeto-spider/pancudinho/pulls{/number}","milestones_url":"https://api.github.com/repos/projeto-spider/pancudinho/milestones{/number}","notifications_url":"https://api.github.com/repos/projeto-spider/pancudinho/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projeto-spider/pancudinho/labels{/name}","releases_url":"https://api.github.com/repos/projeto-spider/pancudinho/releases{/id}","deployments_url":"https://api.github.com/repos/projeto-spider/pancudinho/deployments","created_at":"2018-04-12T12:24:39Z","updated_at":"2018-06-29T14:43:32Z","pushed_at":"2018-06-29T21:34:21Z","git_url":"git://github.com/projeto-spider/pancudinho.git","ssh_url":"git@github.com:projeto-spider/pancudinho.git","clone_url":"https://github.com/projeto-spider/pancudinho.git","svn_url":"https://github.com/projeto-spider/pancudinho","homepage":null,"size":1366,"stargazers_count":0,"watchers_count":0,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57"},"html":{"href":"https://github.com/projeto-spider/pancudinho/pull/57"},"issue":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/issues/57"},"comments":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/projeto-spider/pancudinho/statuses/a70d01d95348944fa3b4232449d1037e6b3368a8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lubien"}}