Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To get started with security, check out the documentation:
- # http://symfony.com/doc/current/book/security.html
- security:
- encoders:
- AppBundle\Entity\EbulkVerifier:
- algorithm: bcrypt
- # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
- providers:
- my_db_provider:
- entity:
- class: AppBundle:EbulkVerifier
- property: workEmail
- access_control:
- - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: ^/, roles: ROLE_USER }
- firewalls:
- # disables authentication for assets and the profiler, adapt it according to your needs
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- secured:
- anonymous: ~
- pattern: ^/
- form_login:
- login_path: login
- check_path: login
- provider: my_db_provider
- logout:
- path: /logout
- target: /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement