{"action":"created","comment":{"url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/comments/182658721","pull_request_review_id":113497161,"id":182658721,"diff_hunk":"@@ -2,18 +2,23 @@ class SessionsController < ApplicationController\n   def new; end\n \n   def create\n-    user = User.find_by(email: params[:session][:email].downcase)\n-    if user && user.authenticate(params[:session][:password])\n+    user = User.find_by email: params[:session][:email].downcase\n+    if user && password_authenticate?(user)\n       log_in user\n+      params[:session][:remember_me] == \"1\" ? remember(user) : forget(user)","path":"app/controllers/sessions_controller.rb","position":9,"original_position":9,"commit_id":"d74f3548111ad4ffc41c181b7a373236cd376a06","original_commit_id":"d74f3548111ad4ffc41c181b7a373236cd376a06","user":{"login":"hhhhuy112","id":17910318,"avatar_url":"https://avatars0.githubusercontent.com/u/17910318?v=4","gravatar_id":"","url":"https://api.github.com/users/hhhhuy112","html_url":"https://github.com/hhhhuy112","followers_url":"https://api.github.com/users/hhhhuy112/followers","following_url":"https://api.github.com/users/hhhhuy112/following{/other_user}","gists_url":"https://api.github.com/users/hhhhuy112/gists{/gist_id}","starred_url":"https://api.github.com/users/hhhhuy112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhhhuy112/subscriptions","organizations_url":"https://api.github.com/users/hhhhuy112/orgs","repos_url":"https://api.github.com/users/hhhhuy112/repos","events_url":"https://api.github.com/users/hhhhuy112/events{/privacy}","received_events_url":"https://api.github.com/users/hhhhuy112/received_events","type":"User","site_admin":false},"body":"\"1\" cho vào Settings.yml đi em","created_at":"2018-04-19T07:46:37Z","updated_at":"2018-04-19T07:47:06Z","html_url":"https://github.com/hoangitsolutions/sample_app/pull/13#discussion_r182658721","pull_request_url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/comments/182658721"},"html":{"href":"https://github.com/hoangitsolutions/sample_app/pull/13#discussion_r182658721"},"pull_request":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13","id":182683722,"html_url":"https://github.com/hoangitsolutions/sample_app/pull/13","diff_url":"https://github.com/hoangitsolutions/sample_app/pull/13.diff","patch_url":"https://github.com/hoangitsolutions/sample_app/pull/13.patch","issue_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/13","number":13,"state":"open","locked":false,"title":"Chapter 9","user":{"login":"hoangitsolutions","id":37991486,"avatar_url":"https://avatars2.githubusercontent.com/u/37991486?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangitsolutions","html_url":"https://github.com/hoangitsolutions","followers_url":"https://api.github.com/users/hoangitsolutions/followers","following_url":"https://api.github.com/users/hoangitsolutions/following{/other_user}","gists_url":"https://api.github.com/users/hoangitsolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangitsolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangitsolutions/subscriptions","organizations_url":"https://api.github.com/users/hoangitsolutions/orgs","repos_url":"https://api.github.com/users/hoangitsolutions/repos","events_url":"https://api.github.com/users/hoangitsolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hoangitsolutions/received_events","type":"User","site_admin":false},"body":"![screen shot 2018-04-19 at 1 34 15 pm](https://user-images.githubusercontent.com/37991486/38975005-5cb06944-43d6-11e8-9391-653f863ed460.png)\r\n","created_at":"2018-04-19T07:05:27Z","updated_at":"2018-04-19T07:47:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d62790be32ff80f770123f0e0989ce74878b782","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13/commits","review_comments_url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13/comments","review_comment_url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/13/comments","statuses_url":"https://api.github.com/repos/hoangitsolutions/sample_app/statuses/d74f3548111ad4ffc41c181b7a373236cd376a06","head":{"label":"hoangitsolutions:chapter_9","ref":"chapter_9","sha":"d74f3548111ad4ffc41c181b7a373236cd376a06","user":{"login":"hoangitsolutions","id":37991486,"avatar_url":"https://avatars2.githubusercontent.com/u/37991486?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangitsolutions","html_url":"https://github.com/hoangitsolutions","followers_url":"https://api.github.com/users/hoangitsolutions/followers","following_url":"https://api.github.com/users/hoangitsolutions/following{/other_user}","gists_url":"https://api.github.com/users/hoangitsolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangitsolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangitsolutions/subscriptions","organizations_url":"https://api.github.com/users/hoangitsolutions/orgs","repos_url":"https://api.github.com/users/hoangitsolutions/repos","events_url":"https://api.github.com/users/hoangitsolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hoangitsolutions/received_events","type":"User","site_admin":false},"repo":{"id":128166383,"name":"sample_app","full_name":"hoangitsolutions/sample_app","owner":{"login":"hoangitsolutions","id":37991486,"avatar_url":"https://avatars2.githubusercontent.com/u/37991486?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangitsolutions","html_url":"https://github.com/hoangitsolutions","followers_url":"https://api.github.com/users/hoangitsolutions/followers","following_url":"https://api.github.com/users/hoangitsolutions/following{/other_user}","gists_url":"https://api.github.com/users/hoangitsolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangitsolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangitsolutions/subscriptions","organizations_url":"https://api.github.com/users/hoangitsolutions/orgs","repos_url":"https://api.github.com/users/hoangitsolutions/repos","events_url":"https://api.github.com/users/hoangitsolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hoangitsolutions/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoangitsolutions/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/hoangitsolutions/sample_app","forks_url":"https://api.github.com/repos/hoangitsolutions/sample_app/forks","keys_url":"https://api.github.com/repos/hoangitsolutions/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoangitsolutions/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoangitsolutions/sample_app/teams","hooks_url":"https://api.github.com/repos/hoangitsolutions/sample_app/hooks","issue_events_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/hoangitsolutions/sample_app/events","assignees_url":"https://api.github.com/repos/hoangitsolutions/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/hoangitsolutions/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/hoangitsolutions/sample_app/tags","blobs_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoangitsolutions/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/hoangitsolutions/sample_app/languages","stargazers_url":"https://api.github.com/repos/hoangitsolutions/sample_app/stargazers","contributors_url":"https://api.github.com/repos/hoangitsolutions/sample_app/contributors","subscribers_url":"https://api.github.com/repos/hoangitsolutions/sample_app/subscribers","subscription_url":"https://api.github.com/repos/hoangitsolutions/sample_app/subscription","commits_url":"https://api.github.com/repos/hoangitsolutions/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoangitsolutions/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoangitsolutions/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/hoangitsolutions/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoangitsolutions/sample_app/merges","archive_url":"https://api.github.com/repos/hoangitsolutions/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoangitsolutions/sample_app/downloads","issues_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/hoangitsolutions/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/hoangitsolutions/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoangitsolutions/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/hoangitsolutions/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/hoangitsolutions/sample_app/deployments","created_at":"2018-04-05T06:14:40Z","updated_at":"2018-04-18T06:34:05Z","pushed_at":"2018-04-19T07:28:12Z","git_url":"git://github.com/hoangitsolutions/sample_app.git","ssh_url":"git@github.com:hoangitsolutions/sample_app.git","clone_url":"https://github.com/hoangitsolutions/sample_app.git","svn_url":"https://github.com/hoangitsolutions/sample_app","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"hoangitsolutions:develop","ref":"develop","sha":"2e06578e1055d5958ca36f4d778f7d7d5ee3822e","user":{"login":"hoangitsolutions","id":37991486,"avatar_url":"https://avatars2.githubusercontent.com/u/37991486?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangitsolutions","html_url":"https://github.com/hoangitsolutions","followers_url":"https://api.github.com/users/hoangitsolutions/followers","following_url":"https://api.github.com/users/hoangitsolutions/following{/other_user}","gists_url":"https://api.github.com/users/hoangitsolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangitsolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangitsolutions/subscriptions","organizations_url":"https://api.github.com/users/hoangitsolutions/orgs","repos_url":"https://api.github.com/users/hoangitsolutions/repos","events_url":"https://api.github.com/users/hoangitsolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hoangitsolutions/received_events","type":"User","site_admin":false},"repo":{"id":128166383,"name":"sample_app","full_name":"hoangitsolutions/sample_app","owner":{"login":"hoangitsolutions","id":37991486,"avatar_url":"https://avatars2.githubusercontent.com/u/37991486?v=4","gravatar_id":"","url":"https://api.github.com/users/hoangitsolutions","html_url":"https://github.com/hoangitsolutions","followers_url":"https://api.github.com/users/hoangitsolutions/followers","following_url":"https://api.github.com/users/hoangitsolutions/following{/other_user}","gists_url":"https://api.github.com/users/hoangitsolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangitsolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangitsolutions/subscriptions","organizations_url":"https://api.github.com/users/hoangitsolutions/orgs","repos_url":"https://api.github.com/users/hoangitsolutions/repos","events_url":"https://api.github.com/users/hoangitsolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hoangitsolutions/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoangitsolutions/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/hoangitsolutions/sample_app","forks_url":"https://api.github.com/repos/hoangitsolutions/sample_app/forks","keys_url":"https://api.github.com/repos/hoangitsolutions/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoangitsolutions/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoangitsolutions/sample_app/teams","hooks_url":"https://api.github.com/repos/hoangitsolutions/sample_app/hooks","issue_events_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/hoangitsolutions/sample_app/events","assignees_url":"https://api.github.com/repos/hoangitsolutions/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/hoangitsolutions/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/hoangitsolutions/sample_app/tags","blobs_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoangitsolutions/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/hoangitsolutions/sample_app/languages","stargazers_url":"https://api.github.com/repos/hoangitsolutions/sample_app/stargazers","contributors_url":"https://api.github.com/repos/hoangitsolutions/sample_app/contributors","subscribers_url":"https://api.github.com/repos/hoangitsolutions/sample_app/subscribers","subscription_url":"https://api.github.com/repos/hoangitsolutions/sample_app/subscription","commits_url":"https://api.github.com/repos/hoangitsolutions/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoangitsolutions/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoangitsolutions/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoangitsolutions/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/hoangitsolutions/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoangitsolutions/sample_app/merges","archive_url":"https://api.github.com/repos/hoangitsolutions/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoangitsolutions/sample_app/downloads","issues_url":"https://api.github.com/repos/hoangitsolutions/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/hoangitsolutions/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/hoangitsolutions/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoangitsolutions/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/hoangitsolutions/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/hoangitsolutions/sample_app/deployments","created_at":"2018-04-05T06:14:40Z","updated_at":"2018-04-18T06:34:05Z","pushed_at":"2018-04-19T07:28:12Z","git_url":"git://github.com/hoangitsolutions/sample_app.git","ssh_url":"git@github.com:hoangitsolutions/sample_app.git","clone_url":"https://github.com/hoangitsolutions/sample_app.git","svn_url":"https://github.com/hoangitsolutions/sample_app","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13"},"html":{"href":"https://github.com/hoangitsolutions/sample_app/pull/13"},"issue":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/13"},"comments":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/hoangitsolutions/sample_app/statuses/d74f3548111ad4ffc41c181b7a373236cd376a06"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hhhhuy112"}}