{"action":"created","issue":{"url":"https://api.github.com/repos/excelwebzone/EWZRecaptchaBundle/issues/199","repository_url":"https://api.github.com/repos/excelwebzone/EWZRecaptchaBundle","labels_url":"https://api.github.com/repos/excelwebzone/EWZRecaptchaBundle/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/excelwebzone/EWZRecaptchaBundle/issues/199/comments","events_url":"https://api.github.com/repos/excelwebzone/EWZRecaptchaBundle/issues/199/events","html_url":"https://github.com/excelwebzone/EWZRecaptchaBundle/issues/199","id":312216890,"number":199,"title":"Form is always valid! Why?","user":{"login":"darkhck","id":5071464,"avatar_url":"https://avatars0.githubusercontent.com/u/5071464?v=4","gravatar_id":"","url":"https://api.github.com/users/darkhck","html_url":"https://github.com/darkhck","followers_url":"https://api.github.com/users/darkhck/followers","following_url":"https://api.github.com/users/darkhck/following{/other_user}","gists_url":"https://api.github.com/users/darkhck/gists{/gist_id}","starred_url":"https://api.github.com/users/darkhck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkhck/subscriptions","organizations_url":"https://api.github.com/users/darkhck/orgs","repos_url":"https://api.github.com/users/darkhck/repos","events_url":"https://api.github.com/users/darkhck/events{/privacy}","received_events_url":"https://api.github.com/users/darkhck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-07T15:34:21Z","updated_at":"2018-04-12T19:04:36Z","closed_at":null,"author_association":"NONE","body":"I'm tried to implement by documentation, but my form is always valid.\r\n - Symfony version: 2.8\r\n - Recaptcha bundle version: ^1.5\r\n\r\n\r\nHere is my code:\r\n**config.yml**\r\n```\r\newz_recaptcha:\r\n    public_key:  \"blablabla\"\r\n    private_key: \"blablabla2\"\r\n    locale_key:  %kernel.default_locale%\r\n    locale_from_request: true\r\n    enabled: true\r\n    ajax: false\r\n```\r\n\r\n**form add code**\r\n```\r\n...->add('recaptcha', EWZRecaptchaType::class, [\r\n                'label' => 'Nem vagyok robot',\r\n                'attr' => [\r\n                    'options' => [\r\n                        'theme' => 'light',\r\n                        'type'  => 'image',\r\n                        'size'  => 'normal',\r\n                        'defer' => true,\r\n                        'async' => false\r\n                    ]\r\n                ],\r\n                'mapped'      => false,\r\n                'constraints' => array(\r\n                    new RecaptchaTrue(array(\"groups\" => \"contest\"))\r\n                ),\r\n                'error_bubbling' => true,\r\n                'required' => true\r\n            ])\r\n```\r\nIf change constraints to new RecaptchaTrue(array(\"groups\" => \"Default\")), I got an error message:\r\n\r\n> The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL.\r\n\r\nCan you help me?\r\n\r\nThanks,\r\nd."},"comment":{"url":"https://api.github.com/repos/excelwebzone/EWZRecaptchaBundle/issues/comments/380912078","html_url":"https://github.com/excelwebzone/EWZRecaptchaBundle/issues/199#issuecomment-380912078","issue_url":"https://api.github.com/repos/excelwebzone/EWZRecaptchaBundle/issues/199","id":380912078,"user":{"login":"darkhck","id":5071464,"avatar_url":"https://avatars0.githubusercontent.com/u/5071464?v=4","gravatar_id":"","url":"https://api.github.com/users/darkhck","html_url":"https://github.com/darkhck","followers_url":"https://api.github.com/users/darkhck/followers","following_url":"https://api.github.com/users/darkhck/following{/other_user}","gists_url":"https://api.github.com/users/darkhck/gists{/gist_id}","starred_url":"https://api.github.com/users/darkhck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkhck/subscriptions","organizations_url":"https://api.github.com/users/darkhck/orgs","repos_url":"https://api.github.com/users/darkhck/repos","events_url":"https://api.github.com/users/darkhck/events{/privacy}","received_events_url":"https://api.github.com/users/darkhck/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T19:04:36Z","updated_at":"2018-04-12T19:04:36Z","author_association":"NONE","body":"Here is my security.yml.\r\nWhat I have to do? Please help.\r\n\r\n```\r\nsecurity:\r\n    encoders:\r\n        FOS\\UserBundle\\Model\\UserInterface: sha512\r\n\r\n    role_hierarchy:\r\n            ROLE_ADMIN:       ROLE_USER\r\n            ROLE_SUPER_ADMIN: ROLE_ADMIN\r\n\r\n    providers:\r\n        fos_userbundle:\r\n            id: fos_user.user_provider.username\r\n\r\n    firewalls:\r\n        dev:\r\n            pattern: ^/(_(profiler|wdt)|css|images|js|vendor|media)/\r\n            security: false\r\n\r\n        admin:\r\n            pattern: ^/admin\r\n            form_login:\r\n                provider: fos_userbundle\r\n                csrf_provider: form.csrf_provider\r\n                login_path: fos_user_security_login\r\n                check_path: fos_user_security_check\r\n            remember_me:\r\n                secret: \"%secret%\"\r\n                lifetime: 604800 # 7 nap\r\n                domain: ~\r\n                path: /admin\r\n            logout:\r\n                path:   fos_user_security_logout\r\n                target: fos_user_security_login\r\n\r\n            logout:       true\r\n            anonymous:    true\r\n\r\n    access_control:\r\n        - { path: ^/admin/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n        - { path: ^/admin/register, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n        - { path: ^/admin/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }\r\n        - { path: ^/admin/, role: ROLE_ADMIN }\r\n\r\n```\r\n\r\n"}}
{"actor":{"display_login":"darkhck"}}