Advertisement
Guest User

security.yml

a guest
Apr 28th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. # To get started with security, check out the documentation:
  2. # http://symfony.com/doc/current/security.html
  3. security:
  4. encoders:
  5. ProyectoEmpBundle\Entity\Usuarios:
  6. algorithm: sha512
  7. encode_as_base64: false
  8. iterations: 4
  9.  
  10. ProyectoEmpBundle\Entity\Eusuarios:
  11. algorithm: sha512
  12. encode_as_base64: false
  13. iterations: 4
  14.  
  15. # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  16. providers:
  17. our_db_provider:
  18. entity:
  19. class: ProyectoEmpBundle:Usuarios
  20. property: email
  21.  
  22. comp_db_provider:
  23. entity:
  24. class: ProyectoEmpBundle:Eusuarios
  25. property: email
  26. firewalls:
  27. # disables authentication for assets and the profiler, adapt it according to your needs
  28. dev:
  29. pattern: ^/(_(profiler|wdt)|css|images|js)/
  30. security: false
  31.  
  32. complogin:
  33. anonymous: ~
  34. pattern: ^/
  35. provider: comp_db_provider
  36.  
  37. form_login:
  38. login_path: /complogin
  39. check_path: /login_check
  40.  
  41. main:
  42. anonymous: ~
  43. provider: our_db_provider
  44.  
  45. form_login:
  46. login_path: login
  47. check_path: login_check
  48.  
  49. logout:
  50. path: /logout
  51. target: /login
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement