{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620","labels_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620/comments","events_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620/events","html_url":"https://github.com/sonata-project/SonataUserBundle/pull/620","id":107398573,"number":620,"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-20T15:37:42Z","updated_at":"2015-09-22T17:09:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/pulls/620","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"},"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."},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/comments/142351826","html_url":"https://github.com/sonata-project/SonataUserBundle/pull/620#issuecomment-142351826","issue_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/620","id":142351826,"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},"created_at":"2015-09-22T17:09:13Z","updated_at":"2015-09-22T17:09:13Z","body":"I am not sure why test cases are failing. Apart from that, do I have to do anything to get this merged?"}}