{"action":"created","comment":{"url":"https://api.github.com/repos/jwall149/powerplate/pulls/comments/120810950","pull_request_review_id":42803933,"id":120810950,"diff_hunk":"@@ -110,4 +110,29 @@ module.exports = {\n       .then((user) => promisifyObjCallback(req, 'logIn')(user))\n       .then(() => ({ status: 'OK', message: 'Your password has been changed.' }));\n   }),\n+  getProfile(req, res) {\n+    res.render('account/profile');\n+  },\n+  postUpdateProfile: promisifyJSON((req, res) => {\n+    const errors = req.validationErrors();\n+    if (errors) {\n+      req.flash('errors', errors);\n+      return res.redirect('/account/profile');","path":"controllers/user.js","position":11,"original_position":11,"commit_id":"d518013ad8d18f307ae6583987382862c2518361","original_commit_id":"d518013ad8d18f307ae6583987382862c2518361","user":{"login":"nguyengiabk","id":4404684,"avatar_url":"https://avatars1.githubusercontent.com/u/4404684?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyengiabk","html_url":"https://github.com/nguyengiabk","followers_url":"https://api.github.com/users/nguyengiabk/followers","following_url":"https://api.github.com/users/nguyengiabk/following{/other_user}","gists_url":"https://api.github.com/users/nguyengiabk/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyengiabk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyengiabk/subscriptions","organizations_url":"https://api.github.com/users/nguyengiabk/orgs","repos_url":"https://api.github.com/users/nguyengiabk/repos","events_url":"https://api.github.com/users/nguyengiabk/events{/privacy}","received_events_url":"https://api.github.com/users/nguyengiabk/received_events","type":"User","site_admin":false},"body":"No, I don't use ajax here. I submit a form normally. Do you think we need to use ajax?","created_at":"2017-06-08T06:50:40Z","updated_at":"2017-06-08T06:50:40Z","html_url":"https://github.com/jwall149/powerplate/pull/4#discussion_r120810950","pull_request_url":"https://api.github.com/repos/jwall149/powerplate/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/jwall149/powerplate/pulls/comments/120810950"},"html":{"href":"https://github.com/jwall149/powerplate/pull/4#discussion_r120810950"},"pull_request":{"href":"https://api.github.com/repos/jwall149/powerplate/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/jwall149/powerplate/pulls/4","id":124384700,"html_url":"https://github.com/jwall149/powerplate/pull/4","diff_url":"https://github.com/jwall149/powerplate/pull/4.diff","patch_url":"https://github.com/jwall149/powerplate/pull/4.patch","issue_url":"https://api.github.com/repos/jwall149/powerplate/issues/4","number":4,"state":"open","locked":false,"title":"Added update profile feature","user":{"login":"nguyengiabk","id":4404684,"avatar_url":"https://avatars1.githubusercontent.com/u/4404684?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyengiabk","html_url":"https://github.com/nguyengiabk","followers_url":"https://api.github.com/users/nguyengiabk/followers","following_url":"https://api.github.com/users/nguyengiabk/following{/other_user}","gists_url":"https://api.github.com/users/nguyengiabk/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyengiabk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyengiabk/subscriptions","organizations_url":"https://api.github.com/users/nguyengiabk/orgs","repos_url":"https://api.github.com/users/nguyengiabk/repos","events_url":"https://api.github.com/users/nguyengiabk/events{/privacy}","received_events_url":"https://api.github.com/users/nguyengiabk/received_events","type":"User","site_admin":false},"body":"@jwall149 @huydinhq Please take a look when you have time. Thank you.","created_at":"2017-06-07T10:17:51Z","updated_at":"2017-06-08T06:50:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b384129765209516e4017678a576f0795e10c2a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jwall149/powerplate/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jwall149/powerplate/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jwall149/powerplate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jwall149/powerplate/issues/4/comments","statuses_url":"https://api.github.com/repos/jwall149/powerplate/statuses/d518013ad8d18f307ae6583987382862c2518361","head":{"label":"nguyengiabk:master","ref":"master","sha":"d518013ad8d18f307ae6583987382862c2518361","user":{"login":"nguyengiabk","id":4404684,"avatar_url":"https://avatars1.githubusercontent.com/u/4404684?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyengiabk","html_url":"https://github.com/nguyengiabk","followers_url":"https://api.github.com/users/nguyengiabk/followers","following_url":"https://api.github.com/users/nguyengiabk/following{/other_user}","gists_url":"https://api.github.com/users/nguyengiabk/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyengiabk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyengiabk/subscriptions","organizations_url":"https://api.github.com/users/nguyengiabk/orgs","repos_url":"https://api.github.com/users/nguyengiabk/repos","events_url":"https://api.github.com/users/nguyengiabk/events{/privacy}","received_events_url":"https://api.github.com/users/nguyengiabk/received_events","type":"User","site_admin":false},"repo":{"id":93378349,"name":"powerplate","full_name":"nguyengiabk/powerplate","owner":{"login":"nguyengiabk","id":4404684,"avatar_url":"https://avatars1.githubusercontent.com/u/4404684?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyengiabk","html_url":"https://github.com/nguyengiabk","followers_url":"https://api.github.com/users/nguyengiabk/followers","following_url":"https://api.github.com/users/nguyengiabk/following{/other_user}","gists_url":"https://api.github.com/users/nguyengiabk/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyengiabk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyengiabk/subscriptions","organizations_url":"https://api.github.com/users/nguyengiabk/orgs","repos_url":"https://api.github.com/users/nguyengiabk/repos","events_url":"https://api.github.com/users/nguyengiabk/events{/privacy}","received_events_url":"https://api.github.com/users/nguyengiabk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyengiabk/powerplate","description":"A production ready boilerplate for Node.js","fork":true,"url":"https://api.github.com/repos/nguyengiabk/powerplate","forks_url":"https://api.github.com/repos/nguyengiabk/powerplate/forks","keys_url":"https://api.github.com/repos/nguyengiabk/powerplate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyengiabk/powerplate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyengiabk/powerplate/teams","hooks_url":"https://api.github.com/repos/nguyengiabk/powerplate/hooks","issue_events_url":"https://api.github.com/repos/nguyengiabk/powerplate/issues/events{/number}","events_url":"https://api.github.com/repos/nguyengiabk/powerplate/events","assignees_url":"https://api.github.com/repos/nguyengiabk/powerplate/assignees{/user}","branches_url":"https://api.github.com/repos/nguyengiabk/powerplate/branches{/branch}","tags_url":"https://api.github.com/repos/nguyengiabk/powerplate/tags","blobs_url":"https://api.github.com/repos/nguyengiabk/powerplate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyengiabk/powerplate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyengiabk/powerplate/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyengiabk/powerplate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyengiabk/powerplate/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyengiabk/powerplate/languages","stargazers_url":"https://api.github.com/repos/nguyengiabk/powerplate/stargazers","contributors_url":"https://api.github.com/repos/nguyengiabk/powerplate/contributors","subscribers_url":"https://api.github.com/repos/nguyengiabk/powerplate/subscribers","subscription_url":"https://api.github.com/repos/nguyengiabk/powerplate/subscription","commits_url":"https://api.github.com/repos/nguyengiabk/powerplate/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyengiabk/powerplate/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyengiabk/powerplate/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyengiabk/powerplate/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyengiabk/powerplate/contents/{+path}","compare_url":"https://api.github.com/repos/nguyengiabk/powerplate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyengiabk/powerplate/merges","archive_url":"https://api.github.com/repos/nguyengiabk/powerplate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyengiabk/powerplate/downloads","issues_url":"https://api.github.com/repos/nguyengiabk/powerplate/issues{/number}","pulls_url":"https://api.github.com/repos/nguyengiabk/powerplate/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyengiabk/powerplate/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyengiabk/powerplate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyengiabk/powerplate/labels{/name}","releases_url":"https://api.github.com/repos/nguyengiabk/powerplate/releases{/id}","deployments_url":"https://api.github.com/repos/nguyengiabk/powerplate/deployments","created_at":"2017-06-05T07:43:44Z","updated_at":"2017-06-05T07:43:46Z","pushed_at":"2017-06-07T10:15:51Z","git_url":"git://github.com/nguyengiabk/powerplate.git","ssh_url":"git@github.com:nguyengiabk/powerplate.git","clone_url":"https://github.com/nguyengiabk/powerplate.git","svn_url":"https://github.com/nguyengiabk/powerplate","homepage":null,"size":1173,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"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":"jwall149:master","ref":"master","sha":"c5d307a1b4b2bb1282a928c5043ec661d9aae372","user":{"login":"jwall149","id":1418170,"avatar_url":"https://avatars0.githubusercontent.com/u/1418170?v=3","gravatar_id":"","url":"https://api.github.com/users/jwall149","html_url":"https://github.com/jwall149","followers_url":"https://api.github.com/users/jwall149/followers","following_url":"https://api.github.com/users/jwall149/following{/other_user}","gists_url":"https://api.github.com/users/jwall149/gists{/gist_id}","starred_url":"https://api.github.com/users/jwall149/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwall149/subscriptions","organizations_url":"https://api.github.com/users/jwall149/orgs","repos_url":"https://api.github.com/users/jwall149/repos","events_url":"https://api.github.com/users/jwall149/events{/privacy}","received_events_url":"https://api.github.com/users/jwall149/received_events","type":"User","site_admin":false},"repo":{"id":93142600,"name":"powerplate","full_name":"jwall149/powerplate","owner":{"login":"jwall149","id":1418170,"avatar_url":"https://avatars0.githubusercontent.com/u/1418170?v=3","gravatar_id":"","url":"https://api.github.com/users/jwall149","html_url":"https://github.com/jwall149","followers_url":"https://api.github.com/users/jwall149/followers","following_url":"https://api.github.com/users/jwall149/following{/other_user}","gists_url":"https://api.github.com/users/jwall149/gists{/gist_id}","starred_url":"https://api.github.com/users/jwall149/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwall149/subscriptions","organizations_url":"https://api.github.com/users/jwall149/orgs","repos_url":"https://api.github.com/users/jwall149/repos","events_url":"https://api.github.com/users/jwall149/events{/privacy}","received_events_url":"https://api.github.com/users/jwall149/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwall149/powerplate","description":"A production ready boilerplate for Node.js","fork":false,"url":"https://api.github.com/repos/jwall149/powerplate","forks_url":"https://api.github.com/repos/jwall149/powerplate/forks","keys_url":"https://api.github.com/repos/jwall149/powerplate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwall149/powerplate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwall149/powerplate/teams","hooks_url":"https://api.github.com/repos/jwall149/powerplate/hooks","issue_events_url":"https://api.github.com/repos/jwall149/powerplate/issues/events{/number}","events_url":"https://api.github.com/repos/jwall149/powerplate/events","assignees_url":"https://api.github.com/repos/jwall149/powerplate/assignees{/user}","branches_url":"https://api.github.com/repos/jwall149/powerplate/branches{/branch}","tags_url":"https://api.github.com/repos/jwall149/powerplate/tags","blobs_url":"https://api.github.com/repos/jwall149/powerplate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwall149/powerplate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwall149/powerplate/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwall149/powerplate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwall149/powerplate/statuses/{sha}","languages_url":"https://api.github.com/repos/jwall149/powerplate/languages","stargazers_url":"https://api.github.com/repos/jwall149/powerplate/stargazers","contributors_url":"https://api.github.com/repos/jwall149/powerplate/contributors","subscribers_url":"https://api.github.com/repos/jwall149/powerplate/subscribers","subscription_url":"https://api.github.com/repos/jwall149/powerplate/subscription","commits_url":"https://api.github.com/repos/jwall149/powerplate/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwall149/powerplate/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwall149/powerplate/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwall149/powerplate/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwall149/powerplate/contents/{+path}","compare_url":"https://api.github.com/repos/jwall149/powerplate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwall149/powerplate/merges","archive_url":"https://api.github.com/repos/jwall149/powerplate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwall149/powerplate/downloads","issues_url":"https://api.github.com/repos/jwall149/powerplate/issues{/number}","pulls_url":"https://api.github.com/repos/jwall149/powerplate/pulls{/number}","milestones_url":"https://api.github.com/repos/jwall149/powerplate/milestones{/number}","notifications_url":"https://api.github.com/repos/jwall149/powerplate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwall149/powerplate/labels{/name}","releases_url":"https://api.github.com/repos/jwall149/powerplate/releases{/id}","deployments_url":"https://api.github.com/repos/jwall149/powerplate/deployments","created_at":"2017-06-02T08:06:47Z","updated_at":"2017-06-08T06:28:08Z","pushed_at":"2017-06-07T10:17:52Z","git_url":"git://github.com/jwall149/powerplate.git","ssh_url":"git@github.com:jwall149/powerplate.git","clone_url":"https://github.com/jwall149/powerplate.git","svn_url":"https://github.com/jwall149/powerplate","homepage":null,"size":1171,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_projects":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":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jwall149/powerplate/pulls/4"},"html":{"href":"https://github.com/jwall149/powerplate/pull/4"},"issue":{"href":"https://api.github.com/repos/jwall149/powerplate/issues/4"},"comments":{"href":"https://api.github.com/repos/jwall149/powerplate/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jwall149/powerplate/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jwall149/powerplate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jwall149/powerplate/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jwall149/powerplate/statuses/d518013ad8d18f307ae6583987382862c2518361"}}}}
{"actor":{"display_login":"nguyengiabk"}}