{"action":"created","comment":{"url":"https://api.github.com/repos/installero/qkspace/pulls/comments/242835578","pull_request_review_id":186441073,"id":242835578,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjgzNTU3OA==","diff_hunk":"@@ -24,13 +24,40 @@ def create\n   end\n \n   def show\n-    super\n+    BCrypt::Password.create(params[:token])\n+\n+    session = find_session\n+    if session.expired?\n+      flash[:alert] = t('.session_expired')\n+      redirect_to sign_in_url\n+      return","path":"app/controllers/sessions_controller.rb","position":11,"original_position":11,"commit_id":"52984492135a062521fa6a95142a65c17295abbf","original_commit_id":"52984492135a062521fa6a95142a65c17295abbf","user":{"login":"installero","id":42387,"node_id":"MDQ6VXNlcjQyMzg3","avatar_url":"https://avatars3.githubusercontent.com/u/42387?v=4","gravatar_id":"","url":"https://api.github.com/users/installero","html_url":"https://github.com/installero","followers_url":"https://api.github.com/users/installero/followers","following_url":"https://api.github.com/users/installero/following{/other_user}","gists_url":"https://api.github.com/users/installero/gists{/gist_id}","starred_url":"https://api.github.com/users/installero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/installero/subscriptions","organizations_url":"https://api.github.com/users/installero/orgs","repos_url":"https://api.github.com/users/installero/repos","events_url":"https://api.github.com/users/installero/events{/privacy}","received_events_url":"https://api.github.com/users/installero/received_events","type":"User","site_admin":false},"body":"Зачем `return` после редиректа?","created_at":"2018-12-19T09:00:34Z","updated_at":"2018-12-19T09:10:46Z","html_url":"https://github.com/installero/qkspace/pull/91#discussion_r242835578","pull_request_url":"https://api.github.com/repos/installero/qkspace/pulls/91","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/installero/qkspace/pulls/comments/242835578"},"html":{"href":"https://github.com/installero/qkspace/pull/91#discussion_r242835578"},"pull_request":{"href":"https://api.github.com/repos/installero/qkspace/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/installero/qkspace/pulls/91","id":239616878,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NjE2ODc4","html_url":"https://github.com/installero/qkspace/pull/91","diff_url":"https://github.com/installero/qkspace/pull/91.diff","patch_url":"https://github.com/installero/qkspace/pull/91.patch","issue_url":"https://api.github.com/repos/installero/qkspace/issues/91","number":91,"state":"open","locked":false,"title":"Private projects","user":{"login":"EugZol","id":835,"node_id":"MDQ6VXNlcjgzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/835?v=4","gravatar_id":"","url":"https://api.github.com/users/EugZol","html_url":"https://github.com/EugZol","followers_url":"https://api.github.com/users/EugZol/followers","following_url":"https://api.github.com/users/EugZol/following{/other_user}","gists_url":"https://api.github.com/users/EugZol/gists{/gist_id}","starred_url":"https://api.github.com/users/EugZol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugZol/subscriptions","organizations_url":"https://api.github.com/users/EugZol/orgs","repos_url":"https://api.github.com/users/EugZol/repos","events_url":"https://api.github.com/users/EugZol/events{/privacy}","received_events_url":"https://api.github.com/users/EugZol/received_events","type":"User","site_admin":false},"body":"* Redirect to public page of private project\r\n* \"Sign out everywhere\"\r\n* Public page of private project explains why you can't view it unless login + shows login link\r\n* Cross-domain sign-in\r\n* Minor fixes and refactoring in I18n and texts\r\n* Added \"Edit project\" link to sidebar","created_at":"2018-12-18T20:12:25Z","updated_at":"2018-12-19T09:10:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32d8d27947e6f6e994638e49fab340e763435f76","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/installero/qkspace/pulls/91/commits","review_comments_url":"https://api.github.com/repos/installero/qkspace/pulls/91/comments","review_comment_url":"https://api.github.com/repos/installero/qkspace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/installero/qkspace/issues/91/comments","statuses_url":"https://api.github.com/repos/installero/qkspace/statuses/52984492135a062521fa6a95142a65c17295abbf","head":{"label":"installero:private_projects","ref":"private_projects","sha":"52984492135a062521fa6a95142a65c17295abbf","user":{"login":"installero","id":42387,"node_id":"MDQ6VXNlcjQyMzg3","avatar_url":"https://avatars3.githubusercontent.com/u/42387?v=4","gravatar_id":"","url":"https://api.github.com/users/installero","html_url":"https://github.com/installero","followers_url":"https://api.github.com/users/installero/followers","following_url":"https://api.github.com/users/installero/following{/other_user}","gists_url":"https://api.github.com/users/installero/gists{/gist_id}","starred_url":"https://api.github.com/users/installero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/installero/subscriptions","organizations_url":"https://api.github.com/users/installero/orgs","repos_url":"https://api.github.com/users/installero/repos","events_url":"https://api.github.com/users/installero/events{/privacy}","received_events_url":"https://api.github.com/users/installero/received_events","type":"User","site_admin":false},"repo":{"id":89337243,"node_id":"MDEwOlJlcG9zaXRvcnk4OTMzNzI0Mw==","name":"qkspace","full_name":"installero/qkspace","private":false,"owner":{"login":"installero","id":42387,"node_id":"MDQ6VXNlcjQyMzg3","avatar_url":"https://avatars3.githubusercontent.com/u/42387?v=4","gravatar_id":"","url":"https://api.github.com/users/installero","html_url":"https://github.com/installero","followers_url":"https://api.github.com/users/installero/followers","following_url":"https://api.github.com/users/installero/following{/other_user}","gists_url":"https://api.github.com/users/installero/gists{/gist_id}","starred_url":"https://api.github.com/users/installero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/installero/subscriptions","organizations_url":"https://api.github.com/users/installero/orgs","repos_url":"https://api.github.com/users/installero/repos","events_url":"https://api.github.com/users/installero/events{/privacy}","received_events_url":"https://api.github.com/users/installero/received_events","type":"User","site_admin":false},"html_url":"https://github.com/installero/qkspace","description":"A CMS with a deadly simple design writtern using Ruby on Rails","fork":false,"url":"https://api.github.com/repos/installero/qkspace","forks_url":"https://api.github.com/repos/installero/qkspace/forks","keys_url":"https://api.github.com/repos/installero/qkspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/installero/qkspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/installero/qkspace/teams","hooks_url":"https://api.github.com/repos/installero/qkspace/hooks","issue_events_url":"https://api.github.com/repos/installero/qkspace/issues/events{/number}","events_url":"https://api.github.com/repos/installero/qkspace/events","assignees_url":"https://api.github.com/repos/installero/qkspace/assignees{/user}","branches_url":"https://api.github.com/repos/installero/qkspace/branches{/branch}","tags_url":"https://api.github.com/repos/installero/qkspace/tags","blobs_url":"https://api.github.com/repos/installero/qkspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/installero/qkspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/installero/qkspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/installero/qkspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/installero/qkspace/statuses/{sha}","languages_url":"https://api.github.com/repos/installero/qkspace/languages","stargazers_url":"https://api.github.com/repos/installero/qkspace/stargazers","contributors_url":"https://api.github.com/repos/installero/qkspace/contributors","subscribers_url":"https://api.github.com/repos/installero/qkspace/subscribers","subscription_url":"https://api.github.com/repos/installero/qkspace/subscription","commits_url":"https://api.github.com/repos/installero/qkspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/installero/qkspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/installero/qkspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/installero/qkspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/installero/qkspace/contents/{+path}","compare_url":"https://api.github.com/repos/installero/qkspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/installero/qkspace/merges","archive_url":"https://api.github.com/repos/installero/qkspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/installero/qkspace/downloads","issues_url":"https://api.github.com/repos/installero/qkspace/issues{/number}","pulls_url":"https://api.github.com/repos/installero/qkspace/pulls{/number}","milestones_url":"https://api.github.com/repos/installero/qkspace/milestones{/number}","notifications_url":"https://api.github.com/repos/installero/qkspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/installero/qkspace/labels{/name}","releases_url":"https://api.github.com/repos/installero/qkspace/releases{/id}","deployments_url":"https://api.github.com/repos/installero/qkspace/deployments","created_at":"2017-04-25T08:36:40Z","updated_at":"2018-12-12T02:42:01Z","pushed_at":"2018-12-18T20:22:04Z","git_url":"git://github.com/installero/qkspace.git","ssh_url":"git@github.com:installero/qkspace.git","clone_url":"https://github.com/installero/qkspace.git","svn_url":"https://github.com/installero/qkspace","homepage":"http://qkspace.com","size":3573,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":16,"watchers":5,"default_branch":"master"}},"base":{"label":"installero:master","ref":"master","sha":"ec6c1af833ba081950104a47d0822d653eb0792d","user":{"login":"installero","id":42387,"node_id":"MDQ6VXNlcjQyMzg3","avatar_url":"https://avatars3.githubusercontent.com/u/42387?v=4","gravatar_id":"","url":"https://api.github.com/users/installero","html_url":"https://github.com/installero","followers_url":"https://api.github.com/users/installero/followers","following_url":"https://api.github.com/users/installero/following{/other_user}","gists_url":"https://api.github.com/users/installero/gists{/gist_id}","starred_url":"https://api.github.com/users/installero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/installero/subscriptions","organizations_url":"https://api.github.com/users/installero/orgs","repos_url":"https://api.github.com/users/installero/repos","events_url":"https://api.github.com/users/installero/events{/privacy}","received_events_url":"https://api.github.com/users/installero/received_events","type":"User","site_admin":false},"repo":{"id":89337243,"node_id":"MDEwOlJlcG9zaXRvcnk4OTMzNzI0Mw==","name":"qkspace","full_name":"installero/qkspace","private":false,"owner":{"login":"installero","id":42387,"node_id":"MDQ6VXNlcjQyMzg3","avatar_url":"https://avatars3.githubusercontent.com/u/42387?v=4","gravatar_id":"","url":"https://api.github.com/users/installero","html_url":"https://github.com/installero","followers_url":"https://api.github.com/users/installero/followers","following_url":"https://api.github.com/users/installero/following{/other_user}","gists_url":"https://api.github.com/users/installero/gists{/gist_id}","starred_url":"https://api.github.com/users/installero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/installero/subscriptions","organizations_url":"https://api.github.com/users/installero/orgs","repos_url":"https://api.github.com/users/installero/repos","events_url":"https://api.github.com/users/installero/events{/privacy}","received_events_url":"https://api.github.com/users/installero/received_events","type":"User","site_admin":false},"html_url":"https://github.com/installero/qkspace","description":"A CMS with a deadly simple design writtern using Ruby on Rails","fork":false,"url":"https://api.github.com/repos/installero/qkspace","forks_url":"https://api.github.com/repos/installero/qkspace/forks","keys_url":"https://api.github.com/repos/installero/qkspace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/installero/qkspace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/installero/qkspace/teams","hooks_url":"https://api.github.com/repos/installero/qkspace/hooks","issue_events_url":"https://api.github.com/repos/installero/qkspace/issues/events{/number}","events_url":"https://api.github.com/repos/installero/qkspace/events","assignees_url":"https://api.github.com/repos/installero/qkspace/assignees{/user}","branches_url":"https://api.github.com/repos/installero/qkspace/branches{/branch}","tags_url":"https://api.github.com/repos/installero/qkspace/tags","blobs_url":"https://api.github.com/repos/installero/qkspace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/installero/qkspace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/installero/qkspace/git/refs{/sha}","trees_url":"https://api.github.com/repos/installero/qkspace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/installero/qkspace/statuses/{sha}","languages_url":"https://api.github.com/repos/installero/qkspace/languages","stargazers_url":"https://api.github.com/repos/installero/qkspace/stargazers","contributors_url":"https://api.github.com/repos/installero/qkspace/contributors","subscribers_url":"https://api.github.com/repos/installero/qkspace/subscribers","subscription_url":"https://api.github.com/repos/installero/qkspace/subscription","commits_url":"https://api.github.com/repos/installero/qkspace/commits{/sha}","git_commits_url":"https://api.github.com/repos/installero/qkspace/git/commits{/sha}","comments_url":"https://api.github.com/repos/installero/qkspace/comments{/number}","issue_comment_url":"https://api.github.com/repos/installero/qkspace/issues/comments{/number}","contents_url":"https://api.github.com/repos/installero/qkspace/contents/{+path}","compare_url":"https://api.github.com/repos/installero/qkspace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/installero/qkspace/merges","archive_url":"https://api.github.com/repos/installero/qkspace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/installero/qkspace/downloads","issues_url":"https://api.github.com/repos/installero/qkspace/issues{/number}","pulls_url":"https://api.github.com/repos/installero/qkspace/pulls{/number}","milestones_url":"https://api.github.com/repos/installero/qkspace/milestones{/number}","notifications_url":"https://api.github.com/repos/installero/qkspace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/installero/qkspace/labels{/name}","releases_url":"https://api.github.com/repos/installero/qkspace/releases{/id}","deployments_url":"https://api.github.com/repos/installero/qkspace/deployments","created_at":"2017-04-25T08:36:40Z","updated_at":"2018-12-12T02:42:01Z","pushed_at":"2018-12-18T20:22:04Z","git_url":"git://github.com/installero/qkspace.git","ssh_url":"git@github.com:installero/qkspace.git","clone_url":"https://github.com/installero/qkspace.git","svn_url":"https://github.com/installero/qkspace","homepage":"http://qkspace.com","size":3573,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":16,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/installero/qkspace/pulls/91"},"html":{"href":"https://github.com/installero/qkspace/pull/91"},"issue":{"href":"https://api.github.com/repos/installero/qkspace/issues/91"},"comments":{"href":"https://api.github.com/repos/installero/qkspace/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/installero/qkspace/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/installero/qkspace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/installero/qkspace/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/installero/qkspace/statuses/52984492135a062521fa6a95142a65c17295abbf"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"installero"}}