{"action":"created","comment":{"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments/172774815","pull_request_review_id":101846451,"id":172774815,"diff_hunk":"@@ -0,0 +1,56 @@\n+class PasswordResetsController < ApplicationController\n+  before_action :get_user, only: %i(edit update)\n+  before_action :valid_user, only: %i(edit update)\n+  before_action :check_expiration, %i(edit update)\n+\n+  def new; end\n+\n+  def edit; end\n+\n+  def update\n+    if params[:user][:password].empty?\n+      @user.errors.add :password, t(\".not_empty\")\n+      render :edit\n+    elsif @user.update_attributes user_params\n+      log_in @user\n+      flash[:success] = t(\".reset_password\")\n+      redirect_to @user\n+    else\n+      render :edit\n+    end\n+  end\n+\n+  def create\n+    @user = User.find_by email: params[:password_reset][:email].dowcase","path":"app/controllers/password_resets_controller.rb","position":24,"original_position":24,"commit_id":"c9b27dc807d1634a72db625018d92b4c050fcd43","original_commit_id":"c9b27dc807d1634a72db625018d92b4c050fcd43","user":{"login":"VuThiTranVan","id":27009821,"avatar_url":"https://avatars3.githubusercontent.com/u/27009821?v=4","gravatar_id":"","url":"https://api.github.com/users/VuThiTranVan","html_url":"https://github.com/VuThiTranVan","followers_url":"https://api.github.com/users/VuThiTranVan/followers","following_url":"https://api.github.com/users/VuThiTranVan/following{/other_user}","gists_url":"https://api.github.com/users/VuThiTranVan/gists{/gist_id}","starred_url":"https://api.github.com/users/VuThiTranVan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuThiTranVan/subscriptions","organizations_url":"https://api.github.com/users/VuThiTranVan/orgs","repos_url":"https://api.github.com/users/VuThiTranVan/repos","events_url":"https://api.github.com/users/VuThiTranVan/events{/privacy}","received_events_url":"https://api.github.com/users/VuThiTranVan/received_events","type":"User","site_admin":false},"body":"`.dowcase` ủa, nó chạy dc hà em? (khoc)\r\n\r\nchị thay `downcase` thành `downcase!` được ko","created_at":"2018-03-07T08:57:01Z","updated_at":"2018-03-07T09:01:43Z","html_url":"https://github.com/CaoAnhDao1804/sample_app/pull/10#discussion_r172774815","pull_request_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments/172774815"},"html":{"href":"https://github.com/CaoAnhDao1804/sample_app/pull/10#discussion_r172774815"},"pull_request":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10","id":173387279,"html_url":"https://github.com/CaoAnhDao1804/sample_app/pull/10","diff_url":"https://github.com/CaoAnhDao1804/sample_app/pull/10.diff","patch_url":"https://github.com/CaoAnhDao1804/sample_app/pull/10.patch","issue_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/10","number":10,"state":"open","locked":false,"title":"Finish c12","user":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"body":"![screenshot from 2018-03-07 15-52-34](https://user-images.githubusercontent.com/35882165/37082709-d1a0757e-221f-11e8-8044-e2526d1c0290.png)\r\n","created_at":"2018-03-07T08:54:33Z","updated_at":"2018-03-07T09:01:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7052f57b096471ef49be4c36da50724e9edf285","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10/commits","review_comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10/comments","review_comment_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/10/comments","statuses_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/c9b27dc807d1634a72db625018d92b4c050fcd43","head":{"label":"CaoAnhDao1804:password_reset","ref":"password_reset","sha":"c9b27dc807d1634a72db625018d92b4c050fcd43","user":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"repo":{"id":122423163,"name":"sample_app","full_name":"CaoAnhDao1804/sample_app","owner":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CaoAnhDao1804/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app","forks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/forks","keys_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/teams","hooks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/hooks","issue_events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/events","assignees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/tags","blobs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/languages","stargazers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/stargazers","contributors_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contributors","subscribers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscribers","subscription_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscription","commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/merges","archive_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/downloads","issues_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/deployments","created_at":"2018-02-22T02:55:30Z","updated_at":"2018-02-22T03:01:17Z","pushed_at":"2018-03-07T08:54:34Z","git_url":"git://github.com/CaoAnhDao1804/sample_app.git","ssh_url":"git@github.com:CaoAnhDao1804/sample_app.git","clone_url":"https://github.com/CaoAnhDao1804/sample_app.git","svn_url":"https://github.com/CaoAnhDao1804/sample_app","homepage":null,"size":216,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CaoAnhDao1804:master","ref":"master","sha":"39b508bf3ff441d79dd60c1a32a1f0101d6e4494","user":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"repo":{"id":122423163,"name":"sample_app","full_name":"CaoAnhDao1804/sample_app","owner":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CaoAnhDao1804/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app","forks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/forks","keys_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/teams","hooks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/hooks","issue_events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/events","assignees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/tags","blobs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/languages","stargazers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/stargazers","contributors_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contributors","subscribers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscribers","subscription_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscription","commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/merges","archive_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/downloads","issues_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/deployments","created_at":"2018-02-22T02:55:30Z","updated_at":"2018-02-22T03:01:17Z","pushed_at":"2018-03-07T08:54:34Z","git_url":"git://github.com/CaoAnhDao1804/sample_app.git","ssh_url":"git@github.com:CaoAnhDao1804/sample_app.git","clone_url":"https://github.com/CaoAnhDao1804/sample_app.git","svn_url":"https://github.com/CaoAnhDao1804/sample_app","homepage":null,"size":216,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10"},"html":{"href":"https://github.com/CaoAnhDao1804/sample_app/pull/10"},"issue":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/10"},"comments":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/c9b27dc807d1634a72db625018d92b4c050fcd43"}},"author_association":"OWNER"}}
{"actor":{"display_login":"VuThiTranVan"}}