{"action":"created","comment":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/comments/39951605","id":39951605,"diff_hunk":"@@ -0,0 +1,30 @@\n+{% extends base_template %}\n+\n+{% block sonata_nav %}\n+{% endblock sonata_nav %}\n+\n+{% block logo %}\n+{% endblock logo %}\n+\n+{% block sonata_left_side %}\n+{% endblock sonata_left_side %}\n+\n+{% block body_attributes %}class=\"sonata-bc login-page\"{% endblock %}\n+\n+{% block sonata_wrapper %}\n+\n+    <div class=\"login-box\">\n+        <div class=\"login-logo\">\n+            <a href=\"{{ path('sonata_admin_dashboard') }}\">\n+                {% if 'single_text' == admin_pool.getOption('title_mode') or 'both' == admin_pool.getOption('title_mode') %}\n+                    <span>{{ admin_pool.title }}</span>\n+                {% endif %}\n+            </a>\n+        </div><!-- /.login-logo -->","path":"Resources/views/Admin/Security/Resetting/checkEmail.html.twig","position":23,"original_position":23,"commit_id":"c7657e73f8e88ba8d287b677e051364e8782f6d3","original_commit_id":"c7657e73f8e88ba8d287b677e051364e8782f6d3","user":{"login":"Soullivaneuh","id":1698357,"avatar_url":"https://avatars.githubusercontent.com/u/1698357?v=3","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"body":"Please remove the comment.","created_at":"2015-09-21T09:06:46Z","updated_at":"2015-09-21T09:06:46Z","html_url":"https://github.com/sonata-project/SonataUserBundle/pull/620#discussion_r39951605","pull_request_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620","_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/comments/39951605"},"html":{"href":"https://github.com/sonata-project/SonataUserBundle/pull/620#discussion_r39951605"},"pull_request":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620"}}},"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620","id":45498376,"html_url":"https://github.com/sonata-project/SonataUserBundle/pull/620","diff_url":"https://github.com/sonata-project/SonataUserBundle/pull/620.diff","patch_url":"https://github.com/sonata-project/SonataUserBundle/pull/620.patch","issue_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620","number":620,"state":"open","locked":false,"title":"Add Admin password resetting","user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"body":"This PR fixes #618\r\n\r\n## Instructions for sandbox\r\n\r\n0 Until this gets merged, add this repository manually and install `dev-admin_reset`\r\n\r\n### 1. Add routes\r\n\r\nMake sure to prefix it with `/admin` or put in a resource file which is loaded with that prefix (like in the sandbox):\r\n\r\n``` yaml\r\nsonata_user_resetting:\r\n    resource: '@SonataUserBundle/Resources/config/routing/admin_resetting.xml'\r\n    prefix: /resetting\r\n```\r\n\r\n### 2. Add access control\r\n\r\nThe `/admin/resetting` route must be accessed as anonymus.\r\n\r\nIn `security.yml`\r\n``` yaml\r\n    access_control:\r\n        - { path: ^/admin/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n```\r\n\r\n## Notes\r\n\r\n- Accessing any of the reset pages as authenticated user redirects to the dashboard. Unlike the AdminSecurity controller, only authentication validity is checked instead of the token, as mentioned in #619\r\n- FOSUserBundle provides a registered form for password reset, however the form is manually created in `SonataUserBundle:Admin:Security/Resetting/reset.html.twig` (mainly because theme reasons). CSRF token is used.\r\n- Translations are used from the FOSUserBundle, however there are \":\" after field names. Those are manually trimmed in twig templates, because field names are used as placeholders instead of labels.","created_at":"2015-09-20T15:37:42Z","updated_at":"2015-09-21T09:06:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e118d1e004a77d1cb03561cf586ea9f118987a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620/commits","review_comments_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620/comments","review_comment_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620/comments","statuses_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/statuses/c7657e73f8e88ba8d287b677e051364e8782f6d3","head":{"label":"sagikazarmark:admin_reset","ref":"admin_reset","sha":"c7657e73f8e88ba8d287b677e051364e8782f6d3","user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"repo":{"id":42808586,"name":"SonataUserBundle","full_name":"sagikazarmark/SonataUserBundle","owner":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagikazarmark/SonataUserBundle","description":"Integrates the UserBundle into the Sonata Project","fork":true,"url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle","forks_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/forks","keys_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/teams","hooks_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/hooks","issue_events_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/events","assignees_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/tags","blobs_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/languages","stargazers_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/stargazers","contributors_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/contributors","subscribers_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/subscribers","subscription_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/subscription","commits_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/merges","archive_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/downloads","issues_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/labels{/name}","releases_url":"https://api.github.com/repos/sagikazarmark/SonataUserBundle/releases{/id}","created_at":"2015-09-20T10:12:47Z","updated_at":"2015-09-20T10:12:48Z","pushed_at":"2015-09-21T07:35:00Z","git_url":"git://github.com/sagikazarmark/SonataUserBundle.git","ssh_url":"git@github.com:sagikazarmark/SonataUserBundle.git","clone_url":"https://github.com/sagikazarmark/SonataUserBundle.git","svn_url":"https://github.com/sagikazarmark/SonataUserBundle","homepage":"http://sonata-project.org/bundles/user","size":2817,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sonata-project:master","ref":"master","sha":"ec09378a100dfe6285562e864c2286ef9104059e","user":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"repo":{"id":1759883,"name":"SonataUserBundle","full_name":"sonata-project/SonataUserBundle","owner":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonata-project/SonataUserBundle","description":"Integrates the UserBundle into the Sonata Project","fork":false,"url":"https://api.github.com/repos/sonata-project/SonataUserBundle","forks_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/forks","keys_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/teams","hooks_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/events","assignees_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/tags","blobs_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/languages","stargazers_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/subscription","commits_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/merges","archive_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/downloads","issues_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/releases{/id}","created_at":"2011-05-17T08:33:49Z","updated_at":"2015-08-24T14:50:16Z","pushed_at":"2015-09-21T07:35:02Z","git_url":"git://github.com/sonata-project/SonataUserBundle.git","ssh_url":"git@github.com:sonata-project/SonataUserBundle.git","clone_url":"https://github.com/sonata-project/SonataUserBundle.git","svn_url":"https://github.com/sonata-project/SonataUserBundle","homepage":"http://sonata-project.org/bundles/user","size":2817,"stargazers_count":160,"watchers_count":160,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":303,"mirror_url":null,"open_issues_count":131,"forks":303,"open_issues":131,"watchers":160,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620"},"html":{"href":"https://github.com/sonata-project/SonataUserBundle/pull/620"},"issue":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620"},"comments":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/SonataUserBundle/statuses/c7657e73f8e88ba8d287b677e051364e8782f6d3"}}}}