{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/signonotron2/pulls/comments/40676819","id":40676819,"diff_hunk":"@@ -36,6 +36,14 @@\n   </p>\n <% end %>\n \n+<% if policy(User).flag_2sv? %>\n+  <p class=\"checkbox\">\n+    <%= f.label :requires_2sv do %>\n+      <%= f.check_box :requires_2sv %> Require 2-step verification","path":"app/views/users/_form_fields.html.erb","position":null,"original_position":7,"commit_id":"b970620c77e2965b65ad780c8404d8570d3f1776","original_commit_id":"e198312708d6d25ee38ed50d918ab1527e30733f","user":{"login":"benlovell","id":41963,"avatar_url":"https://avatars.githubusercontent.com/u/41963?v=3","gravatar_id":"","url":"https://api.github.com/users/benlovell","html_url":"https://github.com/benlovell","followers_url":"https://api.github.com/users/benlovell/followers","following_url":"https://api.github.com/users/benlovell/following{/other_user}","gists_url":"https://api.github.com/users/benlovell/gists{/gist_id}","starred_url":"https://api.github.com/users/benlovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlovell/subscriptions","organizations_url":"https://api.github.com/users/benlovell/orgs","repos_url":"https://api.github.com/users/benlovell/repos","events_url":"https://api.github.com/users/benlovell/events{/privacy}","received_events_url":"https://api.github.com/users/benlovell/received_events","type":"User","site_admin":false},"body":"@jamiecobbett addressed in b970620","created_at":"2015-09-29T14:20:21Z","updated_at":"2015-09-29T14:20:21Z","html_url":"https://github.com/alphagov/signonotron2/pull/407#discussion_r40676819","pull_request_url":"https://api.github.com/repos/alphagov/signonotron2/pulls/407","_links":{"self":{"href":"https://api.github.com/repos/alphagov/signonotron2/pulls/comments/40676819"},"html":{"href":"https://github.com/alphagov/signonotron2/pull/407#discussion_r40676819"},"pull_request":{"href":"https://api.github.com/repos/alphagov/signonotron2/pulls/407"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/signonotron2/pulls/407","id":46264160,"html_url":"https://github.com/alphagov/signonotron2/pull/407","diff_url":"https://github.com/alphagov/signonotron2/pull/407.diff","patch_url":"https://github.com/alphagov/signonotron2/pull/407.patch","issue_url":"https://api.github.com/repos/alphagov/signonotron2/issues/407","number":407,"state":"open","locked":false,"title":"Flag for 2SV","user":{"login":"benlovell","id":41963,"avatar_url":"https://avatars.githubusercontent.com/u/41963?v=3","gravatar_id":"","url":"https://api.github.com/users/benlovell","html_url":"https://github.com/benlovell","followers_url":"https://api.github.com/users/benlovell/followers","following_url":"https://api.github.com/users/benlovell/following{/other_user}","gists_url":"https://api.github.com/users/benlovell/gists{/gist_id}","starred_url":"https://api.github.com/users/benlovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlovell/subscriptions","organizations_url":"https://api.github.com/users/benlovell/orgs","repos_url":"https://api.github.com/users/benlovell/repos","events_url":"https://api.github.com/users/benlovell/events{/privacy}","received_events_url":"https://api.github.com/users/benlovell/received_events","type":"User","site_admin":false},"body":"**Note:** This is based off #406, pending review.\r\n\r\nProvides the ability for super admins to flag users as requiring 2SV. Not too much point at this moment in time but neatly paves the way for prompting flagged users to enrol in 2SV.\r\n\r\nOpened in favour of #405 that was based on my fork. :see_no_evil: ","created_at":"2015-09-29T11:14:43Z","updated_at":"2015-09-29T14:20:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e516eeef2f6402183252ce9449687fc95847dfc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/signonotron2/pulls/407/commits","review_comments_url":"https://api.github.com/repos/alphagov/signonotron2/pulls/407/comments","review_comment_url":"https://api.github.com/repos/alphagov/signonotron2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/signonotron2/issues/407/comments","statuses_url":"https://api.github.com/repos/alphagov/signonotron2/statuses/b970620c77e2965b65ad780c8404d8570d3f1776","head":{"label":"alphagov:flag-for-2sv","ref":"flag-for-2sv","sha":"b970620c77e2965b65ad780c8404d8570d3f1776","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":3928902,"name":"signonotron2","full_name":"alphagov/signonotron2","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/signonotron2","description":"Single sign-on service for GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/signonotron2","forks_url":"https://api.github.com/repos/alphagov/signonotron2/forks","keys_url":"https://api.github.com/repos/alphagov/signonotron2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/signonotron2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/signonotron2/teams","hooks_url":"https://api.github.com/repos/alphagov/signonotron2/hooks","issue_events_url":"https://api.github.com/repos/alphagov/signonotron2/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/signonotron2/events","assignees_url":"https://api.github.com/repos/alphagov/signonotron2/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/signonotron2/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/signonotron2/tags","blobs_url":"https://api.github.com/repos/alphagov/signonotron2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/signonotron2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/signonotron2/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/signonotron2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/signonotron2/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/signonotron2/languages","stargazers_url":"https://api.github.com/repos/alphagov/signonotron2/stargazers","contributors_url":"https://api.github.com/repos/alphagov/signonotron2/contributors","subscribers_url":"https://api.github.com/repos/alphagov/signonotron2/subscribers","subscription_url":"https://api.github.com/repos/alphagov/signonotron2/subscription","commits_url":"https://api.github.com/repos/alphagov/signonotron2/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/signonotron2/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/signonotron2/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/signonotron2/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/signonotron2/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/signonotron2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/signonotron2/merges","archive_url":"https://api.github.com/repos/alphagov/signonotron2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/signonotron2/downloads","issues_url":"https://api.github.com/repos/alphagov/signonotron2/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/signonotron2/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/signonotron2/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/signonotron2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/signonotron2/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/signonotron2/releases{/id}","created_at":"2012-04-04T13:23:55Z","updated_at":"2015-09-19T18:30:05Z","pushed_at":"2015-09-29T14:16:27Z","git_url":"git://github.com/alphagov/signonotron2.git","ssh_url":"git@github.com:alphagov/signonotron2.git","clone_url":"https://github.com/alphagov/signonotron2.git","svn_url":"https://github.com/alphagov/signonotron2","homepage":"","size":8369,"stargazers_count":38,"watchers_count":38,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":6,"forks":18,"open_issues":6,"watchers":38,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"d59b36b92e81edd2751a6afb343a8fddce20092f","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":3928902,"name":"signonotron2","full_name":"alphagov/signonotron2","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/signonotron2","description":"Single sign-on service for GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/signonotron2","forks_url":"https://api.github.com/repos/alphagov/signonotron2/forks","keys_url":"https://api.github.com/repos/alphagov/signonotron2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/signonotron2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/signonotron2/teams","hooks_url":"https://api.github.com/repos/alphagov/signonotron2/hooks","issue_events_url":"https://api.github.com/repos/alphagov/signonotron2/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/signonotron2/events","assignees_url":"https://api.github.com/repos/alphagov/signonotron2/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/signonotron2/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/signonotron2/tags","blobs_url":"https://api.github.com/repos/alphagov/signonotron2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/signonotron2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/signonotron2/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/signonotron2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/signonotron2/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/signonotron2/languages","stargazers_url":"https://api.github.com/repos/alphagov/signonotron2/stargazers","contributors_url":"https://api.github.com/repos/alphagov/signonotron2/contributors","subscribers_url":"https://api.github.com/repos/alphagov/signonotron2/subscribers","subscription_url":"https://api.github.com/repos/alphagov/signonotron2/subscription","commits_url":"https://api.github.com/repos/alphagov/signonotron2/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/signonotron2/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/signonotron2/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/signonotron2/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/signonotron2/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/signonotron2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/signonotron2/merges","archive_url":"https://api.github.com/repos/alphagov/signonotron2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/signonotron2/downloads","issues_url":"https://api.github.com/repos/alphagov/signonotron2/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/signonotron2/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/signonotron2/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/signonotron2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/signonotron2/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/signonotron2/releases{/id}","created_at":"2012-04-04T13:23:55Z","updated_at":"2015-09-19T18:30:05Z","pushed_at":"2015-09-29T14:16:27Z","git_url":"git://github.com/alphagov/signonotron2.git","ssh_url":"git@github.com:alphagov/signonotron2.git","clone_url":"https://github.com/alphagov/signonotron2.git","svn_url":"https://github.com/alphagov/signonotron2","homepage":"","size":8369,"stargazers_count":38,"watchers_count":38,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":6,"forks":18,"open_issues":6,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/signonotron2/pulls/407"},"html":{"href":"https://github.com/alphagov/signonotron2/pull/407"},"issue":{"href":"https://api.github.com/repos/alphagov/signonotron2/issues/407"},"comments":{"href":"https://api.github.com/repos/alphagov/signonotron2/issues/407/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/signonotron2/pulls/407/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/signonotron2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/signonotron2/pulls/407/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/signonotron2/statuses/b970620c77e2965b65ad780c8404d8570d3f1776"}}}}