Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- providers:
- main:
- entity_user:
- class: Test\MyBundle\Entity\User
- property: email
- entity_account:
- class: Test\MyBundle\Entity\Account
- property: username
- encoders:
- Test\MyBundle\Entity\User:
- algorithm: sha512
- iterations: 4
- encode_as_base64: false
- Test\MyBundle\Entity\Account:
- algorithm: md5
- iterations: 1
- encode_as_base64: true
- firewalls:
- user_secured_area:
- pattern: /users/.*
- anonymous: ~
- form_login:
- check_path: /users/login_check
- login_path: /user_login
- logout:
- path: /users/logout
- target: /
- account_secured_area:
- pattern: /accounts/.*
- anonymous: ~
- form_login:
- check_path: /accounts/login_check
- login_path: /account_login
- logout:
- path: /accounts/logout
- target: /
- access_control:
- user_area:
- path: /users/.*
- roles: ROLE_USER
- account_area:
- path: /accounts/.*
- roles: ROLE_ADMIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement