{"action":"created","comment":{"url":"https://api.github.com/repos/average-joes/average-joes/pulls/comments/34418358","id":34418358,"diff_hunk":"@@ -104,6 +104,20 @@ router.post('/:username', function(req, res, next){\n         if(req.body.email){\n           user.email = req.body.email;\n         }\n+        if(req.body.newpass && req.body.newpass == req.body.confpass){\n+          user.setPassword(req.body.newpass, function(error){\n+            if(!error){\n+              user.save(function(error){\n+                if(error){\n+                  console.log(error)\n+                }\n+              });\n+            }\n+            else{\n+              console.log(error)","path":"app/routes/api/users.js","position":23,"original_position":23,"commit_id":"22d21eb8bbf939559905138916e55b0eacc42e9b","original_commit_id":"22d21eb8bbf939559905138916e55b0eacc42e9b","user":{"login":"cpjk","id":3213506,"avatar_url":"https://avatars.githubusercontent.com/u/3213506?v=3","gravatar_id":"","url":"https://api.github.com/users/cpjk","html_url":"https://github.com/cpjk","followers_url":"https://api.github.com/users/cpjk/followers","following_url":"https://api.github.com/users/cpjk/following{/other_user}","gists_url":"https://api.github.com/users/cpjk/gists{/gist_id}","starred_url":"https://api.github.com/users/cpjk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpjk/subscriptions","organizations_url":"https://api.github.com/users/cpjk/orgs","repos_url":"https://api.github.com/users/cpjk/repos","events_url":"https://api.github.com/users/cpjk/events{/privacy}","received_events_url":"https://api.github.com/users/cpjk/received_events","type":"User","site_admin":false},"body":"same as above","created_at":"2015-07-12T03:29:41Z","updated_at":"2015-07-12T03:29:41Z","html_url":"https://github.com/average-joes/average-joes/pull/39#discussion_r34418358","pull_request_url":"https://api.github.com/repos/average-joes/average-joes/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/average-joes/average-joes/pulls/comments/34418358"},"html":{"href":"https://github.com/average-joes/average-joes/pull/39#discussion_r34418358"},"pull_request":{"href":"https://api.github.com/repos/average-joes/average-joes/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/average-joes/average-joes/pulls/39","id":39754947,"html_url":"https://github.com/average-joes/average-joes/pull/39","diff_url":"https://github.com/average-joes/average-joes/pull/39.diff","patch_url":"https://github.com/average-joes/average-joes/pull/39.patch","issue_url":"https://api.github.com/repos/average-joes/average-joes/issues/39","number":39,"state":"open","locked":false,"title":"Change Password","user":{"login":"ProgrammingJoe","id":6970901,"avatar_url":"https://avatars.githubusercontent.com/u/6970901?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingJoe","html_url":"https://github.com/ProgrammingJoe","followers_url":"https://api.github.com/users/ProgrammingJoe/followers","following_url":"https://api.github.com/users/ProgrammingJoe/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingJoe/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingJoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingJoe/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingJoe/orgs","repos_url":"https://api.github.com/users/ProgrammingJoe/repos","events_url":"https://api.github.com/users/ProgrammingJoe/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingJoe/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-12T01:02:25Z","updated_at":"2015-07-12T03:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfce4cb06fc0e83843a39181dd7221ac0a0fdafc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/average-joes/average-joes/pulls/39/commits","review_comments_url":"https://api.github.com/repos/average-joes/average-joes/pulls/39/comments","review_comment_url":"https://api.github.com/repos/average-joes/average-joes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/average-joes/average-joes/issues/39/comments","statuses_url":"https://api.github.com/repos/average-joes/average-joes/statuses/22d21eb8bbf939559905138916e55b0eacc42e9b","head":{"label":"ProgrammingJoe:profile_page","ref":"profile_page","sha":"22d21eb8bbf939559905138916e55b0eacc42e9b","user":{"login":"ProgrammingJoe","id":6970901,"avatar_url":"https://avatars.githubusercontent.com/u/6970901?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingJoe","html_url":"https://github.com/ProgrammingJoe","followers_url":"https://api.github.com/users/ProgrammingJoe/followers","following_url":"https://api.github.com/users/ProgrammingJoe/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingJoe/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingJoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingJoe/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingJoe/orgs","repos_url":"https://api.github.com/users/ProgrammingJoe/repos","events_url":"https://api.github.com/users/ProgrammingJoe/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingJoe/received_events","type":"User","site_admin":false},"repo":{"id":37948615,"name":"average-joes","full_name":"ProgrammingJoe/average-joes","owner":{"login":"ProgrammingJoe","id":6970901,"avatar_url":"https://avatars.githubusercontent.com/u/6970901?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingJoe","html_url":"https://github.com/ProgrammingJoe","followers_url":"https://api.github.com/users/ProgrammingJoe/followers","following_url":"https://api.github.com/users/ProgrammingJoe/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingJoe/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingJoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingJoe/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingJoe/orgs","repos_url":"https://api.github.com/users/ProgrammingJoe/repos","events_url":"https://api.github.com/users/ProgrammingJoe/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingJoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ProgrammingJoe/average-joes","description":":hankey: SENG 299 project","fork":true,"url":"https://api.github.com/repos/ProgrammingJoe/average-joes","forks_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/forks","keys_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/teams","hooks_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/hooks","issue_events_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/issues/events{/number}","events_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/events","assignees_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/assignees{/user}","branches_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/branches{/branch}","tags_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/tags","blobs_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/git/refs{/sha}","trees_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/statuses/{sha}","languages_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/languages","stargazers_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/stargazers","contributors_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/contributors","subscribers_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/subscribers","subscription_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/subscription","commits_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/commits{/sha}","git_commits_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/git/commits{/sha}","comments_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/comments{/number}","issue_comment_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/issues/comments{/number}","contents_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/contents/{+path}","compare_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/merges","archive_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/downloads","issues_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/issues{/number}","pulls_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/pulls{/number}","milestones_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/milestones{/number}","notifications_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/labels{/name}","releases_url":"https://api.github.com/repos/ProgrammingJoe/average-joes/releases{/id}","created_at":"2015-06-23T22:29:08Z","updated_at":"2015-06-23T22:29:09Z","pushed_at":"2015-07-12T01:01:35Z","git_url":"git://github.com/ProgrammingJoe/average-joes.git","ssh_url":"git@github.com:ProgrammingJoe/average-joes.git","clone_url":"https://github.com/ProgrammingJoe/average-joes.git","svn_url":"https://github.com/ProgrammingJoe/average-joes","homepage":"","size":2374,"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":"average-joes:master","ref":"master","sha":"e2ccf404d6bbe5ee051a796eeb24aacd75bcae92","user":{"login":"average-joes","id":13009095,"avatar_url":"https://avatars.githubusercontent.com/u/13009095?v=3","gravatar_id":"","url":"https://api.github.com/users/average-joes","html_url":"https://github.com/average-joes","followers_url":"https://api.github.com/users/average-joes/followers","following_url":"https://api.github.com/users/average-joes/following{/other_user}","gists_url":"https://api.github.com/users/average-joes/gists{/gist_id}","starred_url":"https://api.github.com/users/average-joes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/average-joes/subscriptions","organizations_url":"https://api.github.com/users/average-joes/orgs","repos_url":"https://api.github.com/users/average-joes/repos","events_url":"https://api.github.com/users/average-joes/events{/privacy}","received_events_url":"https://api.github.com/users/average-joes/received_events","type":"Organization","site_admin":false},"repo":{"id":37942278,"name":"average-joes","full_name":"average-joes/average-joes","owner":{"login":"average-joes","id":13009095,"avatar_url":"https://avatars.githubusercontent.com/u/13009095?v=3","gravatar_id":"","url":"https://api.github.com/users/average-joes","html_url":"https://github.com/average-joes","followers_url":"https://api.github.com/users/average-joes/followers","following_url":"https://api.github.com/users/average-joes/following{/other_user}","gists_url":"https://api.github.com/users/average-joes/gists{/gist_id}","starred_url":"https://api.github.com/users/average-joes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/average-joes/subscriptions","organizations_url":"https://api.github.com/users/average-joes/orgs","repos_url":"https://api.github.com/users/average-joes/repos","events_url":"https://api.github.com/users/average-joes/events{/privacy}","received_events_url":"https://api.github.com/users/average-joes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/average-joes/average-joes","description":":basketball: :tennis: :swimmer: :baseball:","fork":true,"url":"https://api.github.com/repos/average-joes/average-joes","forks_url":"https://api.github.com/repos/average-joes/average-joes/forks","keys_url":"https://api.github.com/repos/average-joes/average-joes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/average-joes/average-joes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/average-joes/average-joes/teams","hooks_url":"https://api.github.com/repos/average-joes/average-joes/hooks","issue_events_url":"https://api.github.com/repos/average-joes/average-joes/issues/events{/number}","events_url":"https://api.github.com/repos/average-joes/average-joes/events","assignees_url":"https://api.github.com/repos/average-joes/average-joes/assignees{/user}","branches_url":"https://api.github.com/repos/average-joes/average-joes/branches{/branch}","tags_url":"https://api.github.com/repos/average-joes/average-joes/tags","blobs_url":"https://api.github.com/repos/average-joes/average-joes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/average-joes/average-joes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/average-joes/average-joes/git/refs{/sha}","trees_url":"https://api.github.com/repos/average-joes/average-joes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/average-joes/average-joes/statuses/{sha}","languages_url":"https://api.github.com/repos/average-joes/average-joes/languages","stargazers_url":"https://api.github.com/repos/average-joes/average-joes/stargazers","contributors_url":"https://api.github.com/repos/average-joes/average-joes/contributors","subscribers_url":"https://api.github.com/repos/average-joes/average-joes/subscribers","subscription_url":"https://api.github.com/repos/average-joes/average-joes/subscription","commits_url":"https://api.github.com/repos/average-joes/average-joes/commits{/sha}","git_commits_url":"https://api.github.com/repos/average-joes/average-joes/git/commits{/sha}","comments_url":"https://api.github.com/repos/average-joes/average-joes/comments{/number}","issue_comment_url":"https://api.github.com/repos/average-joes/average-joes/issues/comments{/number}","contents_url":"https://api.github.com/repos/average-joes/average-joes/contents/{+path}","compare_url":"https://api.github.com/repos/average-joes/average-joes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/average-joes/average-joes/merges","archive_url":"https://api.github.com/repos/average-joes/average-joes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/average-joes/average-joes/downloads","issues_url":"https://api.github.com/repos/average-joes/average-joes/issues{/number}","pulls_url":"https://api.github.com/repos/average-joes/average-joes/pulls{/number}","milestones_url":"https://api.github.com/repos/average-joes/average-joes/milestones{/number}","notifications_url":"https://api.github.com/repos/average-joes/average-joes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/average-joes/average-joes/labels{/name}","releases_url":"https://api.github.com/repos/average-joes/average-joes/releases{/id}","created_at":"2015-06-23T20:10:27Z","updated_at":"2015-07-08T01:05:17Z","pushed_at":"2015-07-12T01:02:25Z","git_url":"git://github.com/average-joes/average-joes.git","ssh_url":"git@github.com:average-joes/average-joes.git","clone_url":"https://github.com/average-joes/average-joes.git","svn_url":"https://github.com/average-joes/average-joes","homepage":"","size":4642,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/average-joes/average-joes/pulls/39"},"html":{"href":"https://github.com/average-joes/average-joes/pull/39"},"issue":{"href":"https://api.github.com/repos/average-joes/average-joes/issues/39"},"comments":{"href":"https://api.github.com/repos/average-joes/average-joes/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/average-joes/average-joes/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/average-joes/average-joes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/average-joes/average-joes/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/average-joes/average-joes/statuses/22d21eb8bbf939559905138916e55b0eacc42e9b"}}}}