Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- encoders:
- # Symfony\Component\Security\Core\User\User: sha512
- Comnoutel\GestionBundle\Entity\Empleado: sha512
- #Comnoutel\GestionBundle\Entity\Empleado: plaintext
- role_hierarchy:
- ROLE_TECNICO: [ROLE_TECNICO]
- ROLE_ADMIN: [ROLE_USER, ROLE_TECNICO]
- ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
- providers:
- in_memory:
- memory:
- users:
- user: { password: userpass, roles: [ 'ROLE_USER' ] }
- admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
- empleados:
- entity: { class: Comnoutel\GestionBundle\Entity\Empleado, property: user }
- #users_db:
- # entity: {class: Comnoutel\GestionBundle\Entity\Usuario, property: username }
- firewalls:
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- login:
- pattern: ^/login$
- security: false
- main:
- provider: empleados
- form_login:
- login_path: login
- check_path: login_check
- default_target_path: /menu
- logout:
- path: /logout
- target: /login
- access_control:
- - { path: ^/login, roles: 'IS_AUTHENTICATED_ANONYMOUSLY'} # PARA QUE SEA POR HTTPS , requires_channel: https }
- - { path: ^/admin/*, roles: 'ROLE_ADMIN'}
- - { path: ^/*, roles: 'ROLE_TECNICO'}
Add Comment
Please, Sign In to add comment