{"action":"created","comment":{"url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/comments/28393832","id":28393832,"diff_hunk":"@@ -170,8 +170,21 @@ def receive_reset(email_s, name, ruby, login)\n     end\n \n     def receive_confirmation(env, email, name, ruby, login)\n-      env['rack.session'].clear\n-      register(email, name, ruby, login)\n+      begin\n+        register(email, name, ruby, login) if validate(email, name, ruby, login)","path":"lib/account/register.rb","position":16,"original_position":16,"commit_id":"90d1bedc0ef8fe5ca2d528814179d8006d9b6879","original_commit_id":"90d1bedc0ef8fe5ca2d528814179d8006d9b6879","user":{"login":"krtx","id":1312224,"avatar_url":"https://avatars.githubusercontent.com/u/1312224?v=3","gravatar_id":"","url":"https://api.github.com/users/krtx","html_url":"https://github.com/krtx","followers_url":"https://api.github.com/users/krtx/followers","following_url":"https://api.github.com/users/krtx/following{/other_user}","gists_url":"https://api.github.com/users/krtx/gists{/gist_id}","starred_url":"https://api.github.com/users/krtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtx/subscriptions","organizations_url":"https://api.github.com/users/krtx/orgs","repos_url":"https://api.github.com/users/krtx/repos","events_url":"https://api.github.com/users/krtx/events{/privacy}","received_events_url":"https://api.github.com/users/krtx/received_events","type":"User","site_admin":false},"body":"確かにそうですね、直します","created_at":"2015-04-15T05:13:39Z","updated_at":"2015-04-15T05:13:39Z","html_url":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata/pull/338#discussion_r28393832","pull_request_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338","_links":{"self":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/comments/28393832"},"html":{"href":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata/pull/338#discussion_r28393832"},"pull_request":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338"}}},"pull_request":{"url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338","id":33233655,"html_url":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata/pull/338","diff_url":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata/pull/338.diff","patch_url":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata/pull/338.patch","issue_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/issues/338","number":338,"state":"open","locked":false,"title":"Fix #336.","user":{"login":"krtx","id":1312224,"avatar_url":"https://avatars.githubusercontent.com/u/1312224?v=3","gravatar_id":"","url":"https://api.github.com/users/krtx","html_url":"https://github.com/krtx","followers_url":"https://api.github.com/users/krtx/followers","following_url":"https://api.github.com/users/krtx/following{/other_user}","gists_url":"https://api.github.com/users/krtx/gists{/gist_id}","starred_url":"https://api.github.com/users/krtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtx/subscriptions","organizations_url":"https://api.github.com/users/krtx/orgs","repos_url":"https://api.github.com/users/krtx/repos","events_url":"https://api.github.com/users/krtx/events{/privacy}","received_events_url":"https://api.github.com/users/krtx/received_events","type":"User","site_admin":false},"body":"- CGI モードで使われる cookie 情報をエンコードするための秘密鍵を master.yml で設定するようにしました\r\n- register.rb のアカウントを登録するタイミングでも validation をするようにしました\r\n- app.rb でユーザーの追加・削除をするときにロガーに記録するようにしました","created_at":"2015-04-14T07:53:35Z","updated_at":"2015-04-15T05:13:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e24c376f2d07e695b1e00462281b200e89d2ba35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338/commits","review_comments_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338/comments","review_comment_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/issues/338/comments","statuses_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/statuses/90d1bedc0ef8fe5ca2d528814179d8006d9b6879","head":{"label":"krtx:issue-336","ref":"issue-336","sha":"90d1bedc0ef8fe5ca2d528814179d8006d9b6879","user":{"login":"krtx","id":1312224,"avatar_url":"https://avatars.githubusercontent.com/u/1312224?v=3","gravatar_id":"","url":"https://api.github.com/users/krtx","html_url":"https://github.com/krtx","followers_url":"https://api.github.com/users/krtx/followers","following_url":"https://api.github.com/users/krtx/following{/other_user}","gists_url":"https://api.github.com/users/krtx/gists{/gist_id}","starred_url":"https://api.github.com/users/krtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtx/subscriptions","organizations_url":"https://api.github.com/users/krtx/orgs","repos_url":"https://api.github.com/users/krtx/repos","events_url":"https://api.github.com/users/krtx/events{/privacy}","received_events_url":"https://api.github.com/users/krtx/received_events","type":"User","site_admin":false},"repo":{"id":24524564,"name":"automata","full_name":"krtx/automata","owner":{"login":"krtx","id":1312224,"avatar_url":"https://avatars.githubusercontent.com/u/1312224?v=3","gravatar_id":"","url":"https://api.github.com/users/krtx","html_url":"https://github.com/krtx","followers_url":"https://api.github.com/users/krtx/followers","following_url":"https://api.github.com/users/krtx/following{/other_user}","gists_url":"https://api.github.com/users/krtx/gists{/gist_id}","starred_url":"https://api.github.com/users/krtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtx/subscriptions","organizations_url":"https://api.github.com/users/krtx/orgs","repos_url":"https://api.github.com/users/krtx/repos","events_url":"https://api.github.com/users/krtx/events{/privacy}","received_events_url":"https://api.github.com/users/krtx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krtx/automata","description":null,"fork":true,"url":"https://api.github.com/repos/krtx/automata","forks_url":"https://api.github.com/repos/krtx/automata/forks","keys_url":"https://api.github.com/repos/krtx/automata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krtx/automata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krtx/automata/teams","hooks_url":"https://api.github.com/repos/krtx/automata/hooks","issue_events_url":"https://api.github.com/repos/krtx/automata/issues/events{/number}","events_url":"https://api.github.com/repos/krtx/automata/events","assignees_url":"https://api.github.com/repos/krtx/automata/assignees{/user}","branches_url":"https://api.github.com/repos/krtx/automata/branches{/branch}","tags_url":"https://api.github.com/repos/krtx/automata/tags","blobs_url":"https://api.github.com/repos/krtx/automata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krtx/automata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krtx/automata/git/refs{/sha}","trees_url":"https://api.github.com/repos/krtx/automata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krtx/automata/statuses/{sha}","languages_url":"https://api.github.com/repos/krtx/automata/languages","stargazers_url":"https://api.github.com/repos/krtx/automata/stargazers","contributors_url":"https://api.github.com/repos/krtx/automata/contributors","subscribers_url":"https://api.github.com/repos/krtx/automata/subscribers","subscription_url":"https://api.github.com/repos/krtx/automata/subscription","commits_url":"https://api.github.com/repos/krtx/automata/commits{/sha}","git_commits_url":"https://api.github.com/repos/krtx/automata/git/commits{/sha}","comments_url":"https://api.github.com/repos/krtx/automata/comments{/number}","issue_comment_url":"https://api.github.com/repos/krtx/automata/issues/comments{/number}","contents_url":"https://api.github.com/repos/krtx/automata/contents/{+path}","compare_url":"https://api.github.com/repos/krtx/automata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krtx/automata/merges","archive_url":"https://api.github.com/repos/krtx/automata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krtx/automata/downloads","issues_url":"https://api.github.com/repos/krtx/automata/issues{/number}","pulls_url":"https://api.github.com/repos/krtx/automata/pulls{/number}","milestones_url":"https://api.github.com/repos/krtx/automata/milestones{/number}","notifications_url":"https://api.github.com/repos/krtx/automata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krtx/automata/labels{/name}","releases_url":"https://api.github.com/repos/krtx/automata/releases{/id}","created_at":"2014-09-27T05:41:11Z","updated_at":"2015-04-14T08:14:56Z","pushed_at":"2015-04-14T08:14:55Z","git_url":"git://github.com/krtx/automata.git","ssh_url":"git@github.com:krtx/automata.git","clone_url":"https://github.com/krtx/automata.git","svn_url":"https://github.com/krtx/automata","homepage":null,"size":2576,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"SoftwareFoundationGroupAtKyotoU:master","ref":"master","sha":"d2625e1e85a498404f15aeee8cac783b697bfa99","user":{"login":"SoftwareFoundationGroupAtKyotoU","id":9034238,"avatar_url":"https://avatars.githubusercontent.com/u/9034238?v=3","gravatar_id":"","url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU","html_url":"https://github.com/SoftwareFoundationGroupAtKyotoU","followers_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/followers","following_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/subscriptions","organizations_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/orgs","repos_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/repos","events_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/received_events","type":"Organization","site_admin":false},"repo":{"id":3335051,"name":"automata","full_name":"SoftwareFoundationGroupAtKyotoU/automata","owner":{"login":"SoftwareFoundationGroupAtKyotoU","id":9034238,"avatar_url":"https://avatars.githubusercontent.com/u/9034238?v=3","gravatar_id":"","url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU","html_url":"https://github.com/SoftwareFoundationGroupAtKyotoU","followers_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/followers","following_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/subscriptions","organizations_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/orgs","repos_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/repos","events_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareFoundationGroupAtKyotoU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata","description":null,"fork":false,"url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata","forks_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/forks","keys_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/teams","hooks_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/hooks","issue_events_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/issues/events{/number}","events_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/events","assignees_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/assignees{/user}","branches_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/branches{/branch}","tags_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/tags","blobs_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/git/refs{/sha}","trees_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/statuses/{sha}","languages_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/languages","stargazers_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/stargazers","contributors_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/contributors","subscribers_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/subscribers","subscription_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/subscription","commits_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/commits{/sha}","git_commits_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/git/commits{/sha}","comments_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/comments{/number}","issue_comment_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/issues/comments{/number}","contents_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/contents/{+path}","compare_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/merges","archive_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/downloads","issues_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/issues{/number}","pulls_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls{/number}","milestones_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/milestones{/number}","notifications_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/labels{/name}","releases_url":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/releases{/id}","created_at":"2012-02-02T13:48:27Z","updated_at":"2015-04-14T06:41:28Z","pushed_at":"2015-04-14T07:53:35Z","git_url":"git://github.com/SoftwareFoundationGroupAtKyotoU/automata.git","ssh_url":"git@github.com:SoftwareFoundationGroupAtKyotoU/automata.git","clone_url":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata.git","svn_url":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata","homepage":null,"size":5085,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"open_issues_count":37,"forks":9,"open_issues":37,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338"},"html":{"href":"https://github.com/SoftwareFoundationGroupAtKyotoU/automata/pull/338"},"issue":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/issues/338"},"comments":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/issues/338/comments"},"review_comments":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338/comments"},"review_comment":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/pulls/338/commits"},"statuses":{"href":"https://api.github.com/repos/SoftwareFoundationGroupAtKyotoU/automata/statuses/90d1bedc0ef8fe5ca2d528814179d8006d9b6879"}}}}