{"action":"created","comment":{"url":"https://api.github.com/repos/Formeme/HappyKh/pulls/comments/218566000","pull_request_review_id":156532137,"id":218566000,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODU2NjAwMA==","diff_hunk":"@@ -0,0 +1,57 @@\n+import Axios from 'axios';\n+import router from '../../router';\n+\n+const UserAPI = 'http://127.0.0.1:8000/api/users';\n+\n+export default {\n+  user: {authenticated: false},\n+\n+  authenticate(context, credentials, redirect) {\n+    Axios.post(`${UserAPI}/login/`, credentials)\n+        .then((response) => {\n+            context.$cookies.set('token', response.data['token']);\n+            context.$cookies.set('user_id', response.data['user_id']);\n+\n+            this.user.authenticated = true;\n+\n+            if (redirect) router.push(redirect);\n+        }).catch((error) => {\n+          if(error.response.data.message){\n+            context.$awn.warning(error.response.data.message);\n+          }\n+\n+          this.signout(this);\n+          alert(error);\n+        })  ;\n+  },\n+\n+  // signup(context, credentials, redirect) {\n+  //   Axios.post(`${UserAPI}/v1/signup`, credentials)\n+  //       .then(() => {\n+  //         context.validSignUp = true;\n+  //\n+  //         this.authenticate(context, credentials, redirect);\n+  //       }).catch((error) => {\n+  //         alert(error);\n+  //       });\n+  // },\n+\n+  signout(context, redirect) {\n+    context.$cookies.remove('token');\n+    context.$cookies.remove('user_id');\n+    this.user.authenticated = false;\n+    console.log(context.$cookies);","path":"frontend/src/components/Authentication/auth.js","position":43,"original_position":43,"commit_id":"5ea310d5d4f9e5a181e0f7ce9e78402b75c046b8","original_commit_id":"5ea310d5d4f9e5a181e0f7ce9e78402b75c046b8","user":{"login":"vlad-shev","id":23127575,"node_id":"MDQ6VXNlcjIzMTI3NTc1","avatar_url":"https://avatars0.githubusercontent.com/u/23127575?v=4","gravatar_id":"","url":"https://api.github.com/users/vlad-shev","html_url":"https://github.com/vlad-shev","followers_url":"https://api.github.com/users/vlad-shev/followers","following_url":"https://api.github.com/users/vlad-shev/following{/other_user}","gists_url":"https://api.github.com/users/vlad-shev/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad-shev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad-shev/subscriptions","organizations_url":"https://api.github.com/users/vlad-shev/orgs","repos_url":"https://api.github.com/users/vlad-shev/repos","events_url":"https://api.github.com/users/vlad-shev/events{/privacy}","received_events_url":"https://api.github.com/users/vlad-shev/received_events","type":"User","site_admin":false},"body":"Delete console log","created_at":"2018-09-18T19:34:34Z","updated_at":"2018-09-18T19:44:16Z","html_url":"https://github.com/Formeme/HappyKh/pull/29#discussion_r218566000","pull_request_url":"https://api.github.com/repos/Formeme/HappyKh/pulls/29","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Formeme/HappyKh/pulls/comments/218566000"},"html":{"href":"https://github.com/Formeme/HappyKh/pull/29#discussion_r218566000"},"pull_request":{"href":"https://api.github.com/repos/Formeme/HappyKh/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/Formeme/HappyKh/pulls/29","id":216412448,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NDEyNDQ4","html_url":"https://github.com/Formeme/HappyKh/pull/29","diff_url":"https://github.com/Formeme/HappyKh/pull/29.diff","patch_url":"https://github.com/Formeme/HappyKh/pull/29.patch","issue_url":"https://api.github.com/repos/Formeme/HappyKh/issues/29","number":29,"state":"open","locked":false,"title":"Feature khwp 34 profile frontend + fixes for demo","user":{"login":"Formeme","id":18327030,"node_id":"MDQ6VXNlcjE4MzI3MDMw","avatar_url":"https://avatars0.githubusercontent.com/u/18327030?v=4","gravatar_id":"","url":"https://api.github.com/users/Formeme","html_url":"https://github.com/Formeme","followers_url":"https://api.github.com/users/Formeme/followers","following_url":"https://api.github.com/users/Formeme/following{/other_user}","gists_url":"https://api.github.com/users/Formeme/gists{/gist_id}","starred_url":"https://api.github.com/users/Formeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Formeme/subscriptions","organizations_url":"https://api.github.com/users/Formeme/orgs","repos_url":"https://api.github.com/users/Formeme/repos","events_url":"https://api.github.com/users/Formeme/events{/privacy}","received_events_url":"https://api.github.com/users/Formeme/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-18T19:07:31Z","updated_at":"2018-09-18T19:44:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9357f984b8c448d5de5a32cfc5bf7984fca25cbd","assignee":null,"assignees":[],"requested_reviewers":[{"login":"HolmesInc","id":12729384,"node_id":"MDQ6VXNlcjEyNzI5Mzg0","avatar_url":"https://avatars2.githubusercontent.com/u/12729384?v=4","gravatar_id":"","url":"https://api.github.com/users/HolmesInc","html_url":"https://github.com/HolmesInc","followers_url":"https://api.github.com/users/HolmesInc/followers","following_url":"https://api.github.com/users/HolmesInc/following{/other_user}","gists_url":"https://api.github.com/users/HolmesInc/gists{/gist_id}","starred_url":"https://api.github.com/users/HolmesInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HolmesInc/subscriptions","organizations_url":"https://api.github.com/users/HolmesInc/orgs","repos_url":"https://api.github.com/users/HolmesInc/repos","events_url":"https://api.github.com/users/HolmesInc/events{/privacy}","received_events_url":"https://api.github.com/users/HolmesInc/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Formeme/HappyKh/pulls/29/commits","review_comments_url":"https://api.github.com/repos/Formeme/HappyKh/pulls/29/comments","review_comment_url":"https://api.github.com/repos/Formeme/HappyKh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Formeme/HappyKh/issues/29/comments","statuses_url":"https://api.github.com/repos/Formeme/HappyKh/statuses/5ea310d5d4f9e5a181e0f7ce9e78402b75c046b8","head":{"label":"Formeme:feature_KHWP-34_profile_frontend","ref":"feature_KHWP-34_profile_frontend","sha":"5ea310d5d4f9e5a181e0f7ce9e78402b75c046b8","user":{"login":"Formeme","id":18327030,"node_id":"MDQ6VXNlcjE4MzI3MDMw","avatar_url":"https://avatars0.githubusercontent.com/u/18327030?v=4","gravatar_id":"","url":"https://api.github.com/users/Formeme","html_url":"https://github.com/Formeme","followers_url":"https://api.github.com/users/Formeme/followers","following_url":"https://api.github.com/users/Formeme/following{/other_user}","gists_url":"https://api.github.com/users/Formeme/gists{/gist_id}","starred_url":"https://api.github.com/users/Formeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Formeme/subscriptions","organizations_url":"https://api.github.com/users/Formeme/orgs","repos_url":"https://api.github.com/users/Formeme/repos","events_url":"https://api.github.com/users/Formeme/events{/privacy}","received_events_url":"https://api.github.com/users/Formeme/received_events","type":"User","site_admin":false},"repo":{"id":146305676,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMDU2NzY=","name":"HappyKh","full_name":"Formeme/HappyKh","private":false,"owner":{"login":"Formeme","id":18327030,"node_id":"MDQ6VXNlcjE4MzI3MDMw","avatar_url":"https://avatars0.githubusercontent.com/u/18327030?v=4","gravatar_id":"","url":"https://api.github.com/users/Formeme","html_url":"https://github.com/Formeme","followers_url":"https://api.github.com/users/Formeme/followers","following_url":"https://api.github.com/users/Formeme/following{/other_user}","gists_url":"https://api.github.com/users/Formeme/gists{/gist_id}","starred_url":"https://api.github.com/users/Formeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Formeme/subscriptions","organizations_url":"https://api.github.com/users/Formeme/orgs","repos_url":"https://api.github.com/users/Formeme/repos","events_url":"https://api.github.com/users/Formeme/events{/privacy}","received_events_url":"https://api.github.com/users/Formeme/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Formeme/HappyKh","description":null,"fork":false,"url":"https://api.github.com/repos/Formeme/HappyKh","forks_url":"https://api.github.com/repos/Formeme/HappyKh/forks","keys_url":"https://api.github.com/repos/Formeme/HappyKh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Formeme/HappyKh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Formeme/HappyKh/teams","hooks_url":"https://api.github.com/repos/Formeme/HappyKh/hooks","issue_events_url":"https://api.github.com/repos/Formeme/HappyKh/issues/events{/number}","events_url":"https://api.github.com/repos/Formeme/HappyKh/events","assignees_url":"https://api.github.com/repos/Formeme/HappyKh/assignees{/user}","branches_url":"https://api.github.com/repos/Formeme/HappyKh/branches{/branch}","tags_url":"https://api.github.com/repos/Formeme/HappyKh/tags","blobs_url":"https://api.github.com/repos/Formeme/HappyKh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Formeme/HappyKh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Formeme/HappyKh/git/refs{/sha}","trees_url":"https://api.github.com/repos/Formeme/HappyKh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Formeme/HappyKh/statuses/{sha}","languages_url":"https://api.github.com/repos/Formeme/HappyKh/languages","stargazers_url":"https://api.github.com/repos/Formeme/HappyKh/stargazers","contributors_url":"https://api.github.com/repos/Formeme/HappyKh/contributors","subscribers_url":"https://api.github.com/repos/Formeme/HappyKh/subscribers","subscription_url":"https://api.github.com/repos/Formeme/HappyKh/subscription","commits_url":"https://api.github.com/repos/Formeme/HappyKh/commits{/sha}","git_commits_url":"https://api.github.com/repos/Formeme/HappyKh/git/commits{/sha}","comments_url":"https://api.github.com/repos/Formeme/HappyKh/comments{/number}","issue_comment_url":"https://api.github.com/repos/Formeme/HappyKh/issues/comments{/number}","contents_url":"https://api.github.com/repos/Formeme/HappyKh/contents/{+path}","compare_url":"https://api.github.com/repos/Formeme/HappyKh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Formeme/HappyKh/merges","archive_url":"https://api.github.com/repos/Formeme/HappyKh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Formeme/HappyKh/downloads","issues_url":"https://api.github.com/repos/Formeme/HappyKh/issues{/number}","pulls_url":"https://api.github.com/repos/Formeme/HappyKh/pulls{/number}","milestones_url":"https://api.github.com/repos/Formeme/HappyKh/milestones{/number}","notifications_url":"https://api.github.com/repos/Formeme/HappyKh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Formeme/HappyKh/labels{/name}","releases_url":"https://api.github.com/repos/Formeme/HappyKh/releases{/id}","deployments_url":"https://api.github.com/repos/Formeme/HappyKh/deployments","created_at":"2018-08-27T14:02:39Z","updated_at":"2018-08-30T07:15:14Z","pushed_at":"2018-09-18T19:07:32Z","git_url":"git://github.com/Formeme/HappyKh.git","ssh_url":"git@github.com:Formeme/HappyKh.git","clone_url":"https://github.com/Formeme/HappyKh.git","svn_url":"https://github.com/Formeme/HappyKh","homepage":null,"size":54134,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Formeme:develop","ref":"develop","sha":"ec52bc510801ec772b0b2552cd69cf8220085d49","user":{"login":"Formeme","id":18327030,"node_id":"MDQ6VXNlcjE4MzI3MDMw","avatar_url":"https://avatars0.githubusercontent.com/u/18327030?v=4","gravatar_id":"","url":"https://api.github.com/users/Formeme","html_url":"https://github.com/Formeme","followers_url":"https://api.github.com/users/Formeme/followers","following_url":"https://api.github.com/users/Formeme/following{/other_user}","gists_url":"https://api.github.com/users/Formeme/gists{/gist_id}","starred_url":"https://api.github.com/users/Formeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Formeme/subscriptions","organizations_url":"https://api.github.com/users/Formeme/orgs","repos_url":"https://api.github.com/users/Formeme/repos","events_url":"https://api.github.com/users/Formeme/events{/privacy}","received_events_url":"https://api.github.com/users/Formeme/received_events","type":"User","site_admin":false},"repo":{"id":146305676,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMDU2NzY=","name":"HappyKh","full_name":"Formeme/HappyKh","private":false,"owner":{"login":"Formeme","id":18327030,"node_id":"MDQ6VXNlcjE4MzI3MDMw","avatar_url":"https://avatars0.githubusercontent.com/u/18327030?v=4","gravatar_id":"","url":"https://api.github.com/users/Formeme","html_url":"https://github.com/Formeme","followers_url":"https://api.github.com/users/Formeme/followers","following_url":"https://api.github.com/users/Formeme/following{/other_user}","gists_url":"https://api.github.com/users/Formeme/gists{/gist_id}","starred_url":"https://api.github.com/users/Formeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Formeme/subscriptions","organizations_url":"https://api.github.com/users/Formeme/orgs","repos_url":"https://api.github.com/users/Formeme/repos","events_url":"https://api.github.com/users/Formeme/events{/privacy}","received_events_url":"https://api.github.com/users/Formeme/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Formeme/HappyKh","description":null,"fork":false,"url":"https://api.github.com/repos/Formeme/HappyKh","forks_url":"https://api.github.com/repos/Formeme/HappyKh/forks","keys_url":"https://api.github.com/repos/Formeme/HappyKh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Formeme/HappyKh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Formeme/HappyKh/teams","hooks_url":"https://api.github.com/repos/Formeme/HappyKh/hooks","issue_events_url":"https://api.github.com/repos/Formeme/HappyKh/issues/events{/number}","events_url":"https://api.github.com/repos/Formeme/HappyKh/events","assignees_url":"https://api.github.com/repos/Formeme/HappyKh/assignees{/user}","branches_url":"https://api.github.com/repos/Formeme/HappyKh/branches{/branch}","tags_url":"https://api.github.com/repos/Formeme/HappyKh/tags","blobs_url":"https://api.github.com/repos/Formeme/HappyKh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Formeme/HappyKh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Formeme/HappyKh/git/refs{/sha}","trees_url":"https://api.github.com/repos/Formeme/HappyKh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Formeme/HappyKh/statuses/{sha}","languages_url":"https://api.github.com/repos/Formeme/HappyKh/languages","stargazers_url":"https://api.github.com/repos/Formeme/HappyKh/stargazers","contributors_url":"https://api.github.com/repos/Formeme/HappyKh/contributors","subscribers_url":"https://api.github.com/repos/Formeme/HappyKh/subscribers","subscription_url":"https://api.github.com/repos/Formeme/HappyKh/subscription","commits_url":"https://api.github.com/repos/Formeme/HappyKh/commits{/sha}","git_commits_url":"https://api.github.com/repos/Formeme/HappyKh/git/commits{/sha}","comments_url":"https://api.github.com/repos/Formeme/HappyKh/comments{/number}","issue_comment_url":"https://api.github.com/repos/Formeme/HappyKh/issues/comments{/number}","contents_url":"https://api.github.com/repos/Formeme/HappyKh/contents/{+path}","compare_url":"https://api.github.com/repos/Formeme/HappyKh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Formeme/HappyKh/merges","archive_url":"https://api.github.com/repos/Formeme/HappyKh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Formeme/HappyKh/downloads","issues_url":"https://api.github.com/repos/Formeme/HappyKh/issues{/number}","pulls_url":"https://api.github.com/repos/Formeme/HappyKh/pulls{/number}","milestones_url":"https://api.github.com/repos/Formeme/HappyKh/milestones{/number}","notifications_url":"https://api.github.com/repos/Formeme/HappyKh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Formeme/HappyKh/labels{/name}","releases_url":"https://api.github.com/repos/Formeme/HappyKh/releases{/id}","deployments_url":"https://api.github.com/repos/Formeme/HappyKh/deployments","created_at":"2018-08-27T14:02:39Z","updated_at":"2018-08-30T07:15:14Z","pushed_at":"2018-09-18T19:07:32Z","git_url":"git://github.com/Formeme/HappyKh.git","ssh_url":"git@github.com:Formeme/HappyKh.git","clone_url":"https://github.com/Formeme/HappyKh.git","svn_url":"https://github.com/Formeme/HappyKh","homepage":null,"size":54134,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Formeme/HappyKh/pulls/29"},"html":{"href":"https://github.com/Formeme/HappyKh/pull/29"},"issue":{"href":"https://api.github.com/repos/Formeme/HappyKh/issues/29"},"comments":{"href":"https://api.github.com/repos/Formeme/HappyKh/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/Formeme/HappyKh/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/Formeme/HappyKh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Formeme/HappyKh/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/Formeme/HappyKh/statuses/5ea310d5d4f9e5a181e0f7ce9e78402b75c046b8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"vlad-shev"}}