{"action":"created","comment":{"url":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/comments/91727871","pull_request_review_id":12233101,"id":91727871,"diff_hunk":"@@ -0,0 +1,38 @@\n+class AuthService {\n+\tconstructor($http, $localStorage, $location, config) {\n+\t\tthis.$location = $location;\n+\t\tthis.$localStorage = $localStorage;\n+\t\tthis.endpoint = config.tokenUrl;\n+\t\tthis.$http = $http;\n+\t}\n+\n+\tlogin(user, callback) {\n+\t\tlet _this = this;\n+\t\tthis.$http({\n+\t\t\tmethod: 'POST',\n+\t\t\turl: this.endpoint,\n+\t\t\tdata: angular.toJson(user),\n+\t\t\theaders: {\n+\t\t\t\t'Content-Type': 'application/json; charset=utf-8'\n+\t\t\t}\n+\t\t})\n+\t\t.then(function (e) {\n+\t\t\t_this.$location.path('/servers');\n+\t\t\t_this.$localStorage['testio-token'] = e.data.token;\n+\t\t}, function (e) {\n+\t\t\tcallback(e.status, e.data);\n+\t\t});\n+\t}\n+\n+\tlogout(callback) {\n+\t\tthis.$localStorage['testio-token'] = '';\n+\t\tif (callback) {","path":"src/js/services/auth.service.js","position":29,"original_position":29,"commit_id":"1f2ec3c6ed1dda9f07c8ad4a89419ab43222de1c","original_commit_id":"1f2ec3c6ed1dda9f07c8ad4a89419ab43222de1c","user":{"login":"kerneldemon","id":1659891,"avatar_url":"https://avatars.githubusercontent.com/u/1659891?v=3","gravatar_id":"","url":"https://api.github.com/users/kerneldemon","html_url":"https://github.com/kerneldemon","followers_url":"https://api.github.com/users/kerneldemon/followers","following_url":"https://api.github.com/users/kerneldemon/following{/other_user}","gists_url":"https://api.github.com/users/kerneldemon/gists{/gist_id}","starred_url":"https://api.github.com/users/kerneldemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerneldemon/subscriptions","organizations_url":"https://api.github.com/users/kerneldemon/orgs","repos_url":"https://api.github.com/users/kerneldemon/repos","events_url":"https://api.github.com/users/kerneldemon/events{/privacy}","received_events_url":"https://api.github.com/users/kerneldemon/received_events","type":"User","site_admin":false},"body":"Is this unused?\r\nEven if it is used, avoid old-style callback passing, use promises instead.\r\n","created_at":"2016-12-09T14:46:50Z","updated_at":"2016-12-09T14:50:27Z","html_url":"https://github.com/tesonet/senior-frontend-party/pull/3#discussion_r91727871","pull_request_url":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/comments/91727871"},"html":{"href":"https://github.com/tesonet/senior-frontend-party/pull/3#discussion_r91727871"},"pull_request":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/3","id":96112837,"html_url":"https://github.com/tesonet/senior-frontend-party/pull/3","diff_url":"https://github.com/tesonet/senior-frontend-party/pull/3.diff","patch_url":"https://github.com/tesonet/senior-frontend-party/pull/3.patch","issue_url":"https://api.github.com/repos/tesonet/senior-frontend-party/issues/3","number":3,"state":"open","locked":false,"title":"Task's done.","user":{"login":"Danteelt","id":14270440,"avatar_url":"https://avatars.githubusercontent.com/u/14270440?v=3","gravatar_id":"","url":"https://api.github.com/users/Danteelt","html_url":"https://github.com/Danteelt","followers_url":"https://api.github.com/users/Danteelt/followers","following_url":"https://api.github.com/users/Danteelt/following{/other_user}","gists_url":"https://api.github.com/users/Danteelt/gists{/gist_id}","starred_url":"https://api.github.com/users/Danteelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danteelt/subscriptions","organizations_url":"https://api.github.com/users/Danteelt/orgs","repos_url":"https://api.github.com/users/Danteelt/repos","events_url":"https://api.github.com/users/Danteelt/events{/privacy}","received_events_url":"https://api.github.com/users/Danteelt/received_events","type":"User","site_admin":false},"body":"danius.trumpickas@gmail.com","created_at":"2016-12-01T15:42:49Z","updated_at":"2016-12-09T14:50:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df3a6de86fa407fdcaeb739beeb1b23448ee5fbc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/3/commits","review_comments_url":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/3/comments","review_comment_url":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tesonet/senior-frontend-party/issues/3/comments","statuses_url":"https://api.github.com/repos/tesonet/senior-frontend-party/statuses/1f2ec3c6ed1dda9f07c8ad4a89419ab43222de1c","head":{"label":"Danteelt:master","ref":"master","sha":"1f2ec3c6ed1dda9f07c8ad4a89419ab43222de1c","user":{"login":"Danteelt","id":14270440,"avatar_url":"https://avatars.githubusercontent.com/u/14270440?v=3","gravatar_id":"","url":"https://api.github.com/users/Danteelt","html_url":"https://github.com/Danteelt","followers_url":"https://api.github.com/users/Danteelt/followers","following_url":"https://api.github.com/users/Danteelt/following{/other_user}","gists_url":"https://api.github.com/users/Danteelt/gists{/gist_id}","starred_url":"https://api.github.com/users/Danteelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danteelt/subscriptions","organizations_url":"https://api.github.com/users/Danteelt/orgs","repos_url":"https://api.github.com/users/Danteelt/repos","events_url":"https://api.github.com/users/Danteelt/events{/privacy}","received_events_url":"https://api.github.com/users/Danteelt/received_events","type":"User","site_admin":false},"repo":{"id":75109964,"name":"lead-frontend-party","full_name":"Danteelt/lead-frontend-party","owner":{"login":"Danteelt","id":14270440,"avatar_url":"https://avatars.githubusercontent.com/u/14270440?v=3","gravatar_id":"","url":"https://api.github.com/users/Danteelt","html_url":"https://github.com/Danteelt","followers_url":"https://api.github.com/users/Danteelt/followers","following_url":"https://api.github.com/users/Danteelt/following{/other_user}","gists_url":"https://api.github.com/users/Danteelt/gists{/gist_id}","starred_url":"https://api.github.com/users/Danteelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danteelt/subscriptions","organizations_url":"https://api.github.com/users/Danteelt/orgs","repos_url":"https://api.github.com/users/Danteelt/repos","events_url":"https://api.github.com/users/Danteelt/events{/privacy}","received_events_url":"https://api.github.com/users/Danteelt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Danteelt/lead-frontend-party","description":null,"fork":true,"url":"https://api.github.com/repos/Danteelt/lead-frontend-party","forks_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/forks","keys_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/teams","hooks_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/hooks","issue_events_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/issues/events{/number}","events_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/events","assignees_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/assignees{/user}","branches_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/branches{/branch}","tags_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/tags","blobs_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/git/refs{/sha}","trees_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/statuses/{sha}","languages_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/languages","stargazers_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/stargazers","contributors_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/contributors","subscribers_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/subscribers","subscription_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/subscription","commits_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/commits{/sha}","git_commits_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/git/commits{/sha}","comments_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/comments{/number}","issue_comment_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/issues/comments{/number}","contents_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/contents/{+path}","compare_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/merges","archive_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/downloads","issues_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/issues{/number}","pulls_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/pulls{/number}","milestones_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/milestones{/number}","notifications_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/labels{/name}","releases_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/releases{/id}","deployments_url":"https://api.github.com/repos/Danteelt/lead-frontend-party/deployments","created_at":"2016-11-29T18:28:33Z","updated_at":"2016-11-30T09:02:10Z","pushed_at":"2016-12-06T15:08:44Z","git_url":"git://github.com/Danteelt/lead-frontend-party.git","ssh_url":"git@github.com:Danteelt/lead-frontend-party.git","clone_url":"https://github.com/Danteelt/lead-frontend-party.git","svn_url":"https://github.com/Danteelt/lead-frontend-party","homepage":null,"size":63953,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"tesonet:master","ref":"master","sha":"d3c8ea2ac194fbf53c84a96c581099020e76ad95","user":{"login":"tesonet","id":13332213,"avatar_url":"https://avatars.githubusercontent.com/u/13332213?v=3","gravatar_id":"","url":"https://api.github.com/users/tesonet","html_url":"https://github.com/tesonet","followers_url":"https://api.github.com/users/tesonet/followers","following_url":"https://api.github.com/users/tesonet/following{/other_user}","gists_url":"https://api.github.com/users/tesonet/gists{/gist_id}","starred_url":"https://api.github.com/users/tesonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tesonet/subscriptions","organizations_url":"https://api.github.com/users/tesonet/orgs","repos_url":"https://api.github.com/users/tesonet/repos","events_url":"https://api.github.com/users/tesonet/events{/privacy}","received_events_url":"https://api.github.com/users/tesonet/received_events","type":"Organization","site_admin":false},"repo":{"id":74746200,"name":"senior-frontend-party","full_name":"tesonet/senior-frontend-party","owner":{"login":"tesonet","id":13332213,"avatar_url":"https://avatars.githubusercontent.com/u/13332213?v=3","gravatar_id":"","url":"https://api.github.com/users/tesonet","html_url":"https://github.com/tesonet","followers_url":"https://api.github.com/users/tesonet/followers","following_url":"https://api.github.com/users/tesonet/following{/other_user}","gists_url":"https://api.github.com/users/tesonet/gists{/gist_id}","starred_url":"https://api.github.com/users/tesonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tesonet/subscriptions","organizations_url":"https://api.github.com/users/tesonet/orgs","repos_url":"https://api.github.com/users/tesonet/repos","events_url":"https://api.github.com/users/tesonet/events{/privacy}","received_events_url":"https://api.github.com/users/tesonet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tesonet/senior-frontend-party","description":null,"fork":false,"url":"https://api.github.com/repos/tesonet/senior-frontend-party","forks_url":"https://api.github.com/repos/tesonet/senior-frontend-party/forks","keys_url":"https://api.github.com/repos/tesonet/senior-frontend-party/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tesonet/senior-frontend-party/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tesonet/senior-frontend-party/teams","hooks_url":"https://api.github.com/repos/tesonet/senior-frontend-party/hooks","issue_events_url":"https://api.github.com/repos/tesonet/senior-frontend-party/issues/events{/number}","events_url":"https://api.github.com/repos/tesonet/senior-frontend-party/events","assignees_url":"https://api.github.com/repos/tesonet/senior-frontend-party/assignees{/user}","branches_url":"https://api.github.com/repos/tesonet/senior-frontend-party/branches{/branch}","tags_url":"https://api.github.com/repos/tesonet/senior-frontend-party/tags","blobs_url":"https://api.github.com/repos/tesonet/senior-frontend-party/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tesonet/senior-frontend-party/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tesonet/senior-frontend-party/git/refs{/sha}","trees_url":"https://api.github.com/repos/tesonet/senior-frontend-party/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tesonet/senior-frontend-party/statuses/{sha}","languages_url":"https://api.github.com/repos/tesonet/senior-frontend-party/languages","stargazers_url":"https://api.github.com/repos/tesonet/senior-frontend-party/stargazers","contributors_url":"https://api.github.com/repos/tesonet/senior-frontend-party/contributors","subscribers_url":"https://api.github.com/repos/tesonet/senior-frontend-party/subscribers","subscription_url":"https://api.github.com/repos/tesonet/senior-frontend-party/subscription","commits_url":"https://api.github.com/repos/tesonet/senior-frontend-party/commits{/sha}","git_commits_url":"https://api.github.com/repos/tesonet/senior-frontend-party/git/commits{/sha}","comments_url":"https://api.github.com/repos/tesonet/senior-frontend-party/comments{/number}","issue_comment_url":"https://api.github.com/repos/tesonet/senior-frontend-party/issues/comments{/number}","contents_url":"https://api.github.com/repos/tesonet/senior-frontend-party/contents/{+path}","compare_url":"https://api.github.com/repos/tesonet/senior-frontend-party/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tesonet/senior-frontend-party/merges","archive_url":"https://api.github.com/repos/tesonet/senior-frontend-party/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tesonet/senior-frontend-party/downloads","issues_url":"https://api.github.com/repos/tesonet/senior-frontend-party/issues{/number}","pulls_url":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls{/number}","milestones_url":"https://api.github.com/repos/tesonet/senior-frontend-party/milestones{/number}","notifications_url":"https://api.github.com/repos/tesonet/senior-frontend-party/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tesonet/senior-frontend-party/labels{/name}","releases_url":"https://api.github.com/repos/tesonet/senior-frontend-party/releases{/id}","deployments_url":"https://api.github.com/repos/tesonet/senior-frontend-party/deployments","created_at":"2016-11-25T09:53:18Z","updated_at":"2016-12-09T13:45:48Z","pushed_at":"2016-12-09T14:04:11Z","git_url":"git://github.com/tesonet/senior-frontend-party.git","ssh_url":"git@github.com:tesonet/senior-frontend-party.git","clone_url":"https://github.com/tesonet/senior-frontend-party.git","svn_url":"https://github.com/tesonet/senior-frontend-party","homepage":null,"size":63437,"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/tesonet/senior-frontend-party/pulls/3"},"html":{"href":"https://github.com/tesonet/senior-frontend-party/pull/3"},"issue":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/issues/3"},"comments":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/tesonet/senior-frontend-party/statuses/1f2ec3c6ed1dda9f07c8ad4a89419ab43222de1c"}}}}
{"actor":{"display_login":"kerneldemon"}}