{"action":"created","comment":{"url":"https://api.github.com/repos/codhab/active_codhab/pulls/comments/144582259","pull_request_review_id":69261391,"id":144582259,"diff_hunk":"@@ -0,0 +1,55 @@\n+require 'bcrypt'\n+require_dependency 'active_codhab/application_form'\n+\n+module ActiveCodhab\n+  module Core\n+    module SignIn\n+      class UserForm < ActiveCodhab::ApplicationForm # :nodoc:\n+        attribute :code, String\n+        attribute :password, String\n+        attribute :user_id, Integer\n+\n+        validates :code, :password, presence: true\n+        validate  :user_authorized?\n+\n+        def initialize(attributes = {})\n+          self.attributes = attributes\n+        end\n+\n+        def authorize\n+          valid? ? true : false\n+        end\n+\n+        private\n+\n+        def user_authorized?","path":"app/domains/active_codhab/core/sign_in/user_form.rb","position":25,"original_position":25,"commit_id":"7f23fe3b9580aec98f539d3108adbc2ad0828bfb","original_commit_id":"7f23fe3b9580aec98f539d3108adbc2ad0828bfb","user":{"login":"ebert[bot]","id":23344435,"avatar_url":"https://avatars3.githubusercontent.com/in/597?v=4","gravatar_id":"","url":"https://api.github.com/users/ebert%5Bbot%5D","html_url":"https://github.com/apps/ebert","followers_url":"https://api.github.com/users/ebert%5Bbot%5D/followers","following_url":"https://api.github.com/users/ebert%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/ebert%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/ebert%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebert%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/ebert%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/ebert%5Bbot%5D/repos","events_url":"https://api.github.com/users/ebert%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/ebert%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"ActiveCodhab::Core::SignIn::UserForm#user_authorized? has approx 13 statements\n\n[Read more about it here.](https://github.com/troessner/reek/blob/master/docs/Too-Many-Statements.md)","created_at":"2017-10-13T15:16:08Z","updated_at":"2017-10-13T15:16:08Z","html_url":"https://github.com/codhab/active_codhab/pull/45#discussion_r144582259","pull_request_url":"https://api.github.com/repos/codhab/active_codhab/pulls/45","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/codhab/active_codhab/pulls/comments/144582259"},"html":{"href":"https://github.com/codhab/active_codhab/pull/45#discussion_r144582259"},"pull_request":{"href":"https://api.github.com/repos/codhab/active_codhab/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/codhab/active_codhab/pulls/45","id":146483804,"html_url":"https://github.com/codhab/active_codhab/pull/45","diff_url":"https://github.com/codhab/active_codhab/pull/45.diff","patch_url":"https://github.com/codhab/active_codhab/pull/45.patch","issue_url":"https://api.github.com/repos/codhab/active_codhab/issues/45","number":45,"state":"closed","locked":false,"title":"Develop core","user":{"login":"silvaelton","id":925569,"avatar_url":"https://avatars0.githubusercontent.com/u/925569?v=4","gravatar_id":"","url":"https://api.github.com/users/silvaelton","html_url":"https://github.com/silvaelton","followers_url":"https://api.github.com/users/silvaelton/followers","following_url":"https://api.github.com/users/silvaelton/following{/other_user}","gists_url":"https://api.github.com/users/silvaelton/gists{/gist_id}","starred_url":"https://api.github.com/users/silvaelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvaelton/subscriptions","organizations_url":"https://api.github.com/users/silvaelton/orgs","repos_url":"https://api.github.com/users/silvaelton/repos","events_url":"https://api.github.com/users/silvaelton/events{/privacy}","received_events_url":"https://api.github.com/users/silvaelton/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-13T15:15:28Z","updated_at":"2017-10-13T15:16:08Z","closed_at":"2017-10-13T15:15:43Z","merged_at":"2017-10-13T15:15:43Z","merge_commit_sha":"73cc269e24892553d7f3c167482ed3f95df1e229","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/codhab/active_codhab/pulls/45/commits","review_comments_url":"https://api.github.com/repos/codhab/active_codhab/pulls/45/comments","review_comment_url":"https://api.github.com/repos/codhab/active_codhab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codhab/active_codhab/issues/45/comments","statuses_url":"https://api.github.com/repos/codhab/active_codhab/statuses/7f23fe3b9580aec98f539d3108adbc2ad0828bfb","head":{"label":"codhab:develop_core","ref":"develop_core","sha":"7f23fe3b9580aec98f539d3108adbc2ad0828bfb","user":{"login":"codhab","id":12731528,"avatar_url":"https://avatars1.githubusercontent.com/u/12731528?v=4","gravatar_id":"","url":"https://api.github.com/users/codhab","html_url":"https://github.com/codhab","followers_url":"https://api.github.com/users/codhab/followers","following_url":"https://api.github.com/users/codhab/following{/other_user}","gists_url":"https://api.github.com/users/codhab/gists{/gist_id}","starred_url":"https://api.github.com/users/codhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codhab/subscriptions","organizations_url":"https://api.github.com/users/codhab/orgs","repos_url":"https://api.github.com/users/codhab/repos","events_url":"https://api.github.com/users/codhab/events{/privacy}","received_events_url":"https://api.github.com/users/codhab/received_events","type":"Organization","site_admin":false},"repo":{"id":95567199,"name":"active_codhab","full_name":"codhab/active_codhab","owner":{"login":"codhab","id":12731528,"avatar_url":"https://avatars1.githubusercontent.com/u/12731528?v=4","gravatar_id":"","url":"https://api.github.com/users/codhab","html_url":"https://github.com/codhab","followers_url":"https://api.github.com/users/codhab/followers","following_url":"https://api.github.com/users/codhab/following{/other_user}","gists_url":"https://api.github.com/users/codhab/gists{/gist_id}","starred_url":"https://api.github.com/users/codhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codhab/subscriptions","organizations_url":"https://api.github.com/users/codhab/orgs","repos_url":"https://api.github.com/users/codhab/repos","events_url":"https://api.github.com/users/codhab/events{/privacy}","received_events_url":"https://api.github.com/users/codhab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codhab/active_codhab","description":null,"fork":false,"url":"https://api.github.com/repos/codhab/active_codhab","forks_url":"https://api.github.com/repos/codhab/active_codhab/forks","keys_url":"https://api.github.com/repos/codhab/active_codhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codhab/active_codhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codhab/active_codhab/teams","hooks_url":"https://api.github.com/repos/codhab/active_codhab/hooks","issue_events_url":"https://api.github.com/repos/codhab/active_codhab/issues/events{/number}","events_url":"https://api.github.com/repos/codhab/active_codhab/events","assignees_url":"https://api.github.com/repos/codhab/active_codhab/assignees{/user}","branches_url":"https://api.github.com/repos/codhab/active_codhab/branches{/branch}","tags_url":"https://api.github.com/repos/codhab/active_codhab/tags","blobs_url":"https://api.github.com/repos/codhab/active_codhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codhab/active_codhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codhab/active_codhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/codhab/active_codhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codhab/active_codhab/statuses/{sha}","languages_url":"https://api.github.com/repos/codhab/active_codhab/languages","stargazers_url":"https://api.github.com/repos/codhab/active_codhab/stargazers","contributors_url":"https://api.github.com/repos/codhab/active_codhab/contributors","subscribers_url":"https://api.github.com/repos/codhab/active_codhab/subscribers","subscription_url":"https://api.github.com/repos/codhab/active_codhab/subscription","commits_url":"https://api.github.com/repos/codhab/active_codhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/codhab/active_codhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/codhab/active_codhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/codhab/active_codhab/issues/comments{/number}","contents_url":"https://api.github.com/repos/codhab/active_codhab/contents/{+path}","compare_url":"https://api.github.com/repos/codhab/active_codhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codhab/active_codhab/merges","archive_url":"https://api.github.com/repos/codhab/active_codhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codhab/active_codhab/downloads","issues_url":"https://api.github.com/repos/codhab/active_codhab/issues{/number}","pulls_url":"https://api.github.com/repos/codhab/active_codhab/pulls{/number}","milestones_url":"https://api.github.com/repos/codhab/active_codhab/milestones{/number}","notifications_url":"https://api.github.com/repos/codhab/active_codhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codhab/active_codhab/labels{/name}","releases_url":"https://api.github.com/repos/codhab/active_codhab/releases{/id}","deployments_url":"https://api.github.com/repos/codhab/active_codhab/deployments","created_at":"2017-06-27T14:27:38Z","updated_at":"2017-10-03T14:14:24Z","pushed_at":"2017-10-13T15:15:44Z","git_url":"git://github.com/codhab/active_codhab.git","ssh_url":"git@github.com:codhab/active_codhab.git","clone_url":"https://github.com/codhab/active_codhab.git","svn_url":"https://github.com/codhab/active_codhab","homepage":null,"size":4806,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codhab:master","ref":"master","sha":"f2b9544853011f45daf88f2a503a0516bb490ffa","user":{"login":"codhab","id":12731528,"avatar_url":"https://avatars1.githubusercontent.com/u/12731528?v=4","gravatar_id":"","url":"https://api.github.com/users/codhab","html_url":"https://github.com/codhab","followers_url":"https://api.github.com/users/codhab/followers","following_url":"https://api.github.com/users/codhab/following{/other_user}","gists_url":"https://api.github.com/users/codhab/gists{/gist_id}","starred_url":"https://api.github.com/users/codhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codhab/subscriptions","organizations_url":"https://api.github.com/users/codhab/orgs","repos_url":"https://api.github.com/users/codhab/repos","events_url":"https://api.github.com/users/codhab/events{/privacy}","received_events_url":"https://api.github.com/users/codhab/received_events","type":"Organization","site_admin":false},"repo":{"id":95567199,"name":"active_codhab","full_name":"codhab/active_codhab","owner":{"login":"codhab","id":12731528,"avatar_url":"https://avatars1.githubusercontent.com/u/12731528?v=4","gravatar_id":"","url":"https://api.github.com/users/codhab","html_url":"https://github.com/codhab","followers_url":"https://api.github.com/users/codhab/followers","following_url":"https://api.github.com/users/codhab/following{/other_user}","gists_url":"https://api.github.com/users/codhab/gists{/gist_id}","starred_url":"https://api.github.com/users/codhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codhab/subscriptions","organizations_url":"https://api.github.com/users/codhab/orgs","repos_url":"https://api.github.com/users/codhab/repos","events_url":"https://api.github.com/users/codhab/events{/privacy}","received_events_url":"https://api.github.com/users/codhab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codhab/active_codhab","description":null,"fork":false,"url":"https://api.github.com/repos/codhab/active_codhab","forks_url":"https://api.github.com/repos/codhab/active_codhab/forks","keys_url":"https://api.github.com/repos/codhab/active_codhab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codhab/active_codhab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codhab/active_codhab/teams","hooks_url":"https://api.github.com/repos/codhab/active_codhab/hooks","issue_events_url":"https://api.github.com/repos/codhab/active_codhab/issues/events{/number}","events_url":"https://api.github.com/repos/codhab/active_codhab/events","assignees_url":"https://api.github.com/repos/codhab/active_codhab/assignees{/user}","branches_url":"https://api.github.com/repos/codhab/active_codhab/branches{/branch}","tags_url":"https://api.github.com/repos/codhab/active_codhab/tags","blobs_url":"https://api.github.com/repos/codhab/active_codhab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codhab/active_codhab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codhab/active_codhab/git/refs{/sha}","trees_url":"https://api.github.com/repos/codhab/active_codhab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codhab/active_codhab/statuses/{sha}","languages_url":"https://api.github.com/repos/codhab/active_codhab/languages","stargazers_url":"https://api.github.com/repos/codhab/active_codhab/stargazers","contributors_url":"https://api.github.com/repos/codhab/active_codhab/contributors","subscribers_url":"https://api.github.com/repos/codhab/active_codhab/subscribers","subscription_url":"https://api.github.com/repos/codhab/active_codhab/subscription","commits_url":"https://api.github.com/repos/codhab/active_codhab/commits{/sha}","git_commits_url":"https://api.github.com/repos/codhab/active_codhab/git/commits{/sha}","comments_url":"https://api.github.com/repos/codhab/active_codhab/comments{/number}","issue_comment_url":"https://api.github.com/repos/codhab/active_codhab/issues/comments{/number}","contents_url":"https://api.github.com/repos/codhab/active_codhab/contents/{+path}","compare_url":"https://api.github.com/repos/codhab/active_codhab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codhab/active_codhab/merges","archive_url":"https://api.github.com/repos/codhab/active_codhab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codhab/active_codhab/downloads","issues_url":"https://api.github.com/repos/codhab/active_codhab/issues{/number}","pulls_url":"https://api.github.com/repos/codhab/active_codhab/pulls{/number}","milestones_url":"https://api.github.com/repos/codhab/active_codhab/milestones{/number}","notifications_url":"https://api.github.com/repos/codhab/active_codhab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codhab/active_codhab/labels{/name}","releases_url":"https://api.github.com/repos/codhab/active_codhab/releases{/id}","deployments_url":"https://api.github.com/repos/codhab/active_codhab/deployments","created_at":"2017-06-27T14:27:38Z","updated_at":"2017-10-03T14:14:24Z","pushed_at":"2017-10-13T15:15:44Z","git_url":"git://github.com/codhab/active_codhab.git","ssh_url":"git@github.com:codhab/active_codhab.git","clone_url":"https://github.com/codhab/active_codhab.git","svn_url":"https://github.com/codhab/active_codhab","homepage":null,"size":4806,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codhab/active_codhab/pulls/45"},"html":{"href":"https://github.com/codhab/active_codhab/pull/45"},"issue":{"href":"https://api.github.com/repos/codhab/active_codhab/issues/45"},"comments":{"href":"https://api.github.com/repos/codhab/active_codhab/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/codhab/active_codhab/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/codhab/active_codhab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codhab/active_codhab/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/codhab/active_codhab/statuses/7f23fe3b9580aec98f539d3108adbc2ad0828bfb"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ebert"}}