{"action":"created","comment":{"url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/comments/167480380","pull_request_review_id":95702901,"id":167480380,"diff_hunk":"@@ -0,0 +1,36 @@\n+const passport = require('passport');\n+const LocalStrategy = require('passport-local').Strategy;\n+const bcrypt = require('bcryptjs');\n+\n+const User = require('../models/user');\n+\n+passport.use(new LocalStrategy(\n+  function(username, password, done) {","path":"app/config/passport.js","position":8,"original_position":8,"commit_id":"f3feb21041ba68b9aa7a49914455971881af8af5","original_commit_id":"f3feb21041ba68b9aa7a49914455971881af8af5","user":{"login":"leskeg","id":5890824,"avatar_url":"https://avatars2.githubusercontent.com/u/5890824?v=4","gravatar_id":"","url":"https://api.github.com/users/leskeg","html_url":"https://github.com/leskeg","followers_url":"https://api.github.com/users/leskeg/followers","following_url":"https://api.github.com/users/leskeg/following{/other_user}","gists_url":"https://api.github.com/users/leskeg/gists{/gist_id}","starred_url":"https://api.github.com/users/leskeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leskeg/subscriptions","organizations_url":"https://api.github.com/users/leskeg/orgs","repos_url":"https://api.github.com/users/leskeg/repos","events_url":"https://api.github.com/users/leskeg/events{/privacy}","received_events_url":"https://api.github.com/users/leskeg/received_events","type":"User","site_admin":false},"body":"I would just use arrow funcitons","created_at":"2018-02-12T07:29:36Z","updated_at":"2018-02-12T07:44:58Z","html_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE/pull/2#discussion_r167480380","pull_request_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/comments/167480380"},"html":{"href":"https://github.com/aliaksei-lyzo/FrontCamp3_BE/pull/2#discussion_r167480380"},"pull_request":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/2","id":168186617,"html_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE/pull/2","diff_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE/pull/2.diff","patch_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE/pull/2.patch","issue_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/2","number":2,"state":"open","locked":false,"title":"Be task2","user":{"login":"aliaksei-lyzo","id":32729594,"avatar_url":"https://avatars2.githubusercontent.com/u/32729594?v=4","gravatar_id":"","url":"https://api.github.com/users/aliaksei-lyzo","html_url":"https://github.com/aliaksei-lyzo","followers_url":"https://api.github.com/users/aliaksei-lyzo/followers","following_url":"https://api.github.com/users/aliaksei-lyzo/following{/other_user}","gists_url":"https://api.github.com/users/aliaksei-lyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaksei-lyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaksei-lyzo/subscriptions","organizations_url":"https://api.github.com/users/aliaksei-lyzo/orgs","repos_url":"https://api.github.com/users/aliaksei-lyzo/repos","events_url":"https://api.github.com/users/aliaksei-lyzo/events{/privacy}","received_events_url":"https://api.github.com/users/aliaksei-lyzo/received_events","type":"User","site_admin":false},"body":"HomeTask 2 is completed.","created_at":"2018-02-09T09:10:22Z","updated_at":"2018-02-12T07:44:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a82737e1dd5767ed69a0459677d102e1284ff5c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/2/commits","review_comments_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/2/comments","review_comment_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/2/comments","statuses_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/statuses/f3feb21041ba68b9aa7a49914455971881af8af5","head":{"label":"aliaksei-lyzo:BE_task2","ref":"BE_task2","sha":"f3feb21041ba68b9aa7a49914455971881af8af5","user":{"login":"aliaksei-lyzo","id":32729594,"avatar_url":"https://avatars2.githubusercontent.com/u/32729594?v=4","gravatar_id":"","url":"https://api.github.com/users/aliaksei-lyzo","html_url":"https://github.com/aliaksei-lyzo","followers_url":"https://api.github.com/users/aliaksei-lyzo/followers","following_url":"https://api.github.com/users/aliaksei-lyzo/following{/other_user}","gists_url":"https://api.github.com/users/aliaksei-lyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaksei-lyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaksei-lyzo/subscriptions","organizations_url":"https://api.github.com/users/aliaksei-lyzo/orgs","repos_url":"https://api.github.com/users/aliaksei-lyzo/repos","events_url":"https://api.github.com/users/aliaksei-lyzo/events{/privacy}","received_events_url":"https://api.github.com/users/aliaksei-lyzo/received_events","type":"User","site_admin":false},"repo":{"id":118759330,"name":"FrontCamp3_BE","full_name":"aliaksei-lyzo/FrontCamp3_BE","owner":{"login":"aliaksei-lyzo","id":32729594,"avatar_url":"https://avatars2.githubusercontent.com/u/32729594?v=4","gravatar_id":"","url":"https://api.github.com/users/aliaksei-lyzo","html_url":"https://github.com/aliaksei-lyzo","followers_url":"https://api.github.com/users/aliaksei-lyzo/followers","following_url":"https://api.github.com/users/aliaksei-lyzo/following{/other_user}","gists_url":"https://api.github.com/users/aliaksei-lyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaksei-lyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaksei-lyzo/subscriptions","organizations_url":"https://api.github.com/users/aliaksei-lyzo/orgs","repos_url":"https://api.github.com/users/aliaksei-lyzo/repos","events_url":"https://api.github.com/users/aliaksei-lyzo/events{/privacy}","received_events_url":"https://api.github.com/users/aliaksei-lyzo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE","description":"FrontCamp3 Backend (NodeJs and Express) Hometask","fork":false,"url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE","forks_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/forks","keys_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/teams","hooks_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/hooks","issue_events_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/events{/number}","events_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/events","assignees_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/assignees{/user}","branches_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/branches{/branch}","tags_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/tags","blobs_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/refs{/sha}","trees_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/statuses/{sha}","languages_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/languages","stargazers_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/stargazers","contributors_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/contributors","subscribers_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/subscribers","subscription_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/subscription","commits_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/commits{/sha}","git_commits_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/commits{/sha}","comments_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/comments{/number}","issue_comment_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/comments{/number}","contents_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/contents/{+path}","compare_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/merges","archive_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/downloads","issues_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues{/number}","pulls_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls{/number}","milestones_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/milestones{/number}","notifications_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/labels{/name}","releases_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/releases{/id}","deployments_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/deployments","created_at":"2018-01-24T11:57:42Z","updated_at":"2018-01-31T17:45:28Z","pushed_at":"2018-02-09T09:10:23Z","git_url":"git://github.com/aliaksei-lyzo/FrontCamp3_BE.git","ssh_url":"git@github.com:aliaksei-lyzo/FrontCamp3_BE.git","clone_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE.git","svn_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"aliaksei-lyzo:master","ref":"master","sha":"3134a35aa396176daa4f5c3164a16861a215e775","user":{"login":"aliaksei-lyzo","id":32729594,"avatar_url":"https://avatars2.githubusercontent.com/u/32729594?v=4","gravatar_id":"","url":"https://api.github.com/users/aliaksei-lyzo","html_url":"https://github.com/aliaksei-lyzo","followers_url":"https://api.github.com/users/aliaksei-lyzo/followers","following_url":"https://api.github.com/users/aliaksei-lyzo/following{/other_user}","gists_url":"https://api.github.com/users/aliaksei-lyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaksei-lyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaksei-lyzo/subscriptions","organizations_url":"https://api.github.com/users/aliaksei-lyzo/orgs","repos_url":"https://api.github.com/users/aliaksei-lyzo/repos","events_url":"https://api.github.com/users/aliaksei-lyzo/events{/privacy}","received_events_url":"https://api.github.com/users/aliaksei-lyzo/received_events","type":"User","site_admin":false},"repo":{"id":118759330,"name":"FrontCamp3_BE","full_name":"aliaksei-lyzo/FrontCamp3_BE","owner":{"login":"aliaksei-lyzo","id":32729594,"avatar_url":"https://avatars2.githubusercontent.com/u/32729594?v=4","gravatar_id":"","url":"https://api.github.com/users/aliaksei-lyzo","html_url":"https://github.com/aliaksei-lyzo","followers_url":"https://api.github.com/users/aliaksei-lyzo/followers","following_url":"https://api.github.com/users/aliaksei-lyzo/following{/other_user}","gists_url":"https://api.github.com/users/aliaksei-lyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/aliaksei-lyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliaksei-lyzo/subscriptions","organizations_url":"https://api.github.com/users/aliaksei-lyzo/orgs","repos_url":"https://api.github.com/users/aliaksei-lyzo/repos","events_url":"https://api.github.com/users/aliaksei-lyzo/events{/privacy}","received_events_url":"https://api.github.com/users/aliaksei-lyzo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE","description":"FrontCamp3 Backend (NodeJs and Express) Hometask","fork":false,"url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE","forks_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/forks","keys_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/teams","hooks_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/hooks","issue_events_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/events{/number}","events_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/events","assignees_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/assignees{/user}","branches_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/branches{/branch}","tags_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/tags","blobs_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/refs{/sha}","trees_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/statuses/{sha}","languages_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/languages","stargazers_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/stargazers","contributors_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/contributors","subscribers_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/subscribers","subscription_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/subscription","commits_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/commits{/sha}","git_commits_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/git/commits{/sha}","comments_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/comments{/number}","issue_comment_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/comments{/number}","contents_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/contents/{+path}","compare_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/merges","archive_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/downloads","issues_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues{/number}","pulls_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls{/number}","milestones_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/milestones{/number}","notifications_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/labels{/name}","releases_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/releases{/id}","deployments_url":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/deployments","created_at":"2018-01-24T11:57:42Z","updated_at":"2018-01-31T17:45:28Z","pushed_at":"2018-02-09T09:10:23Z","git_url":"git://github.com/aliaksei-lyzo/FrontCamp3_BE.git","ssh_url":"git@github.com:aliaksei-lyzo/FrontCamp3_BE.git","clone_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE.git","svn_url":"https://github.com/aliaksei-lyzo/FrontCamp3_BE","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/aliaksei-lyzo/FrontCamp3_BE/pulls/2"},"html":{"href":"https://github.com/aliaksei-lyzo/FrontCamp3_BE/pull/2"},"issue":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/2"},"comments":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/aliaksei-lyzo/FrontCamp3_BE/statuses/f3feb21041ba68b9aa7a49914455971881af8af5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"leskeg"}}