Guest User

Untitled

a guest
Nov 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. security:
  2. encoders:
  3. Symfony\Component\Security\Core\User\User: plaintext
  4. Hybrid\UserBundle\Entity\User:
  5. algorithm: sha1
  6.  
  7. providers:
  8. main:
  9. providers: [database, memory]
  10. database:
  11. entity: { class: Hybrid\UserBundle\Entity\User, property: email }
  12. memory:
  13. users:
  14. admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
  15.  
  16. firewalls:
  17. profiler:
  18. pattern: ^/_profiler
  19. security: false
  20.  
  21. wdt:
  22. pattern: ^/_wdt
  23. security: false
  24.  
  25. login:
  26. pattern: ^/login$
  27. security: false
  28.  
  29. application:
  30. pattern: ^/
  31. form_login:
  32. login_path: /login # Here's the form
  33. check_path: /login/process # Here's the login functionality
  34. username_parameter: _identity
  35. always_use_default_target_path: true
  36. default_target_path: /about
  37. logout:
  38. path: /logout
  39. target: /
  40.  
  41. access_control:
  42. #- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
Add Comment
Please, Sign In to add comment