{"action":"created","comment":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments/113952164","pull_request_review_id":35384967,"id":113952164,"diff_hunk":"@@ -0,0 +1,41 @@\n+# frozen_string_literal: true\n+module Authentication\n+  module Recoverable\n+\n+    attr_accessor :reset_password_token\n+\n+    def prepare_reset_password\n+      self.reset_password_token = SecureRandom.urlsafe_base64 40\n+      self.reset_password_digest = BCrypt::Password.create reset_password_token\n+      save\n+\n+      UserMailer.reset_password_email(email, reset_password_token).deliver_later\n+    end\n+\n+    def reset_password(password, password_confirmation)\n+      self.reset_password_digest = nil\n+      self.reset_password_sent_at = nil\n+      self.password = password\n+      self.password_confirmation = password_confirmation\n+      save\n+\n+      UserMailer.password_changed_email(email).deliver_later\n+    end\n+\n+    def reset_password_valid?(reset_password_token)\n+      pending_reset_password? &&\n+        !reset_password_expired? &&\n+        BCrypt::Password.new(reset_password_digest).is_password?(reset_password_token)","path":"lib/doorkeeper/models/concerns/recoverable.rb","position":28,"original_position":28,"commit_id":"d67a1bd6be4b8905b77f4473d5546c1a453d43c8","original_commit_id":"d67a1bd6be4b8905b77f4473d5546c1a453d43c8","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [86/80]","created_at":"2017-04-28T15:07:31Z","updated_at":"2017-04-28T15:07:32Z","html_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/959#discussion_r113952164","pull_request_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959","_links":{"self":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments/113952164"},"html":{"href":"https://github.com/doorkeeper-gem/doorkeeper/pull/959#discussion_r113952164"},"pull_request":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959"}}},"pull_request":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959","id":118172943,"html_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/959","diff_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/959.diff","patch_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/959.patch","issue_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/959","number":959,"state":"open","locked":false,"title":"User features","user":{"login":"astony","id":16455004,"avatar_url":"https://avatars2.githubusercontent.com/u/16455004?v=3","gravatar_id":"","url":"https://api.github.com/users/astony","html_url":"https://github.com/astony","followers_url":"https://api.github.com/users/astony/followers","following_url":"https://api.github.com/users/astony/following{/other_user}","gists_url":"https://api.github.com/users/astony/gists{/gist_id}","starred_url":"https://api.github.com/users/astony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astony/subscriptions","organizations_url":"https://api.github.com/users/astony/orgs","repos_url":"https://api.github.com/users/astony/repos","events_url":"https://api.github.com/users/astony/events{/privacy}","received_events_url":"https://api.github.com/users/astony/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-28T15:07:15Z","updated_at":"2017-04-28T15:07:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9031fd62d92f83b18376fb31061913c4157e9aa1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959/commits","review_comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959/comments","review_comment_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/959/comments","statuses_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/statuses/d67a1bd6be4b8905b77f4473d5546c1a453d43c8","head":{"label":"astony:new_features","ref":"new_features","sha":"d67a1bd6be4b8905b77f4473d5546c1a453d43c8","user":{"login":"astony","id":16455004,"avatar_url":"https://avatars2.githubusercontent.com/u/16455004?v=3","gravatar_id":"","url":"https://api.github.com/users/astony","html_url":"https://github.com/astony","followers_url":"https://api.github.com/users/astony/followers","following_url":"https://api.github.com/users/astony/following{/other_user}","gists_url":"https://api.github.com/users/astony/gists{/gist_id}","starred_url":"https://api.github.com/users/astony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astony/subscriptions","organizations_url":"https://api.github.com/users/astony/orgs","repos_url":"https://api.github.com/users/astony/repos","events_url":"https://api.github.com/users/astony/events{/privacy}","received_events_url":"https://api.github.com/users/astony/received_events","type":"User","site_admin":false},"repo":{"id":89717170,"name":"doorkeeper","full_name":"astony/doorkeeper","owner":{"login":"astony","id":16455004,"avatar_url":"https://avatars2.githubusercontent.com/u/16455004?v=3","gravatar_id":"","url":"https://api.github.com/users/astony","html_url":"https://github.com/astony","followers_url":"https://api.github.com/users/astony/followers","following_url":"https://api.github.com/users/astony/following{/other_user}","gists_url":"https://api.github.com/users/astony/gists{/gist_id}","starred_url":"https://api.github.com/users/astony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astony/subscriptions","organizations_url":"https://api.github.com/users/astony/orgs","repos_url":"https://api.github.com/users/astony/repos","events_url":"https://api.github.com/users/astony/events{/privacy}","received_events_url":"https://api.github.com/users/astony/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astony/doorkeeper","description":"Doorkeeper is an OAuth 2 provider for Rails.","fork":true,"url":"https://api.github.com/repos/astony/doorkeeper","forks_url":"https://api.github.com/repos/astony/doorkeeper/forks","keys_url":"https://api.github.com/repos/astony/doorkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astony/doorkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astony/doorkeeper/teams","hooks_url":"https://api.github.com/repos/astony/doorkeeper/hooks","issue_events_url":"https://api.github.com/repos/astony/doorkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/astony/doorkeeper/events","assignees_url":"https://api.github.com/repos/astony/doorkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/astony/doorkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/astony/doorkeeper/tags","blobs_url":"https://api.github.com/repos/astony/doorkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astony/doorkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astony/doorkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/astony/doorkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astony/doorkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/astony/doorkeeper/languages","stargazers_url":"https://api.github.com/repos/astony/doorkeeper/stargazers","contributors_url":"https://api.github.com/repos/astony/doorkeeper/contributors","subscribers_url":"https://api.github.com/repos/astony/doorkeeper/subscribers","subscription_url":"https://api.github.com/repos/astony/doorkeeper/subscription","commits_url":"https://api.github.com/repos/astony/doorkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/astony/doorkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/astony/doorkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/astony/doorkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/astony/doorkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/astony/doorkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astony/doorkeeper/merges","archive_url":"https://api.github.com/repos/astony/doorkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astony/doorkeeper/downloads","issues_url":"https://api.github.com/repos/astony/doorkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/astony/doorkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/astony/doorkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/astony/doorkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astony/doorkeeper/labels{/name}","releases_url":"https://api.github.com/repos/astony/doorkeeper/releases{/id}","deployments_url":"https://api.github.com/repos/astony/doorkeeper/deployments","created_at":"2017-04-28T15:04:52Z","updated_at":"2017-04-28T15:04:54Z","pushed_at":"2017-04-28T15:07:02Z","git_url":"git://github.com/astony/doorkeeper.git","ssh_url":"git@github.com:astony/doorkeeper.git","clone_url":"https://github.com/astony/doorkeeper.git","svn_url":"https://github.com/astony/doorkeeper","homepage":"","size":2038,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"doorkeeper-gem:master","ref":"master","sha":"14c9ed154a4363593b18216f302d7fc2f8b62120","user":{"login":"doorkeeper-gem","id":7275750,"avatar_url":"https://avatars2.githubusercontent.com/u/7275750?v=3","gravatar_id":"","url":"https://api.github.com/users/doorkeeper-gem","html_url":"https://github.com/doorkeeper-gem","followers_url":"https://api.github.com/users/doorkeeper-gem/followers","following_url":"https://api.github.com/users/doorkeeper-gem/following{/other_user}","gists_url":"https://api.github.com/users/doorkeeper-gem/gists{/gist_id}","starred_url":"https://api.github.com/users/doorkeeper-gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doorkeeper-gem/subscriptions","organizations_url":"https://api.github.com/users/doorkeeper-gem/orgs","repos_url":"https://api.github.com/users/doorkeeper-gem/repos","events_url":"https://api.github.com/users/doorkeeper-gem/events{/privacy}","received_events_url":"https://api.github.com/users/doorkeeper-gem/received_events","type":"Organization","site_admin":false},"repo":{"id":2802565,"name":"doorkeeper","full_name":"doorkeeper-gem/doorkeeper","owner":{"login":"doorkeeper-gem","id":7275750,"avatar_url":"https://avatars2.githubusercontent.com/u/7275750?v=3","gravatar_id":"","url":"https://api.github.com/users/doorkeeper-gem","html_url":"https://github.com/doorkeeper-gem","followers_url":"https://api.github.com/users/doorkeeper-gem/followers","following_url":"https://api.github.com/users/doorkeeper-gem/following{/other_user}","gists_url":"https://api.github.com/users/doorkeeper-gem/gists{/gist_id}","starred_url":"https://api.github.com/users/doorkeeper-gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doorkeeper-gem/subscriptions","organizations_url":"https://api.github.com/users/doorkeeper-gem/orgs","repos_url":"https://api.github.com/users/doorkeeper-gem/repos","events_url":"https://api.github.com/users/doorkeeper-gem/events{/privacy}","received_events_url":"https://api.github.com/users/doorkeeper-gem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doorkeeper-gem/doorkeeper","description":"Doorkeeper is an OAuth 2 provider for Rails.","fork":false,"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper","forks_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/forks","keys_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/teams","hooks_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/hooks","issue_events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/events","assignees_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/tags","blobs_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/languages","stargazers_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/stargazers","contributors_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/contributors","subscribers_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/subscribers","subscription_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/subscription","commits_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/merges","archive_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/downloads","issues_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/labels{/name}","releases_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/releases{/id}","deployments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/deployments","created_at":"2011-11-18T13:02:01Z","updated_at":"2017-04-28T03:18:17Z","pushed_at":"2017-04-28T15:07:16Z","git_url":"git://github.com/doorkeeper-gem/doorkeeper.git","ssh_url":"git@github.com:doorkeeper-gem/doorkeeper.git","clone_url":"https://github.com/doorkeeper-gem/doorkeeper.git","svn_url":"https://github.com/doorkeeper-gem/doorkeeper","homepage":"","size":2038,"stargazers_count":3490,"watchers_count":3490,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":687,"mirror_url":null,"open_issues_count":41,"forks":687,"open_issues":41,"watchers":3490,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959"},"html":{"href":"https://github.com/doorkeeper-gem/doorkeeper/pull/959"},"issue":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/959"},"comments":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/959/comments"},"review_comments":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959/comments"},"review_comment":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/959/commits"},"statuses":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/statuses/d67a1bd6be4b8905b77f4473d5546c1a453d43c8"}}}}
{"actor":{"display_login":"houndci-bot"}}