ltbxd-actorle/config/packages/security.yaml

39 lines
1.1 KiB
YAML
Raw Normal View History

2026-01-13 12:58:53 +00:00
security:
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
providers:
app_user_provider:
entity:
class: App\Entity\User
property: email
2026-01-13 12:58:53 +00:00
firewalls:
dev:
pattern: ^/(_profiler|_wdt|assets|build)/
security: false
main:
lazy: true
provider: app_user_provider
form_login:
login_path: app_login
check_path: app_login
default_target_path: /
logout:
path: app_logout
2026-01-13 12:58:53 +00:00
access_control:
- { path: ^/login, roles: PUBLIC_ACCESS }
- { path: ^/register, roles: PUBLIC_ACCESS }
2026-03-30 10:13:19 +00:00
- { path: ^/$, roles: PUBLIC_ACCESS }
- { path: ^/, roles: ROLE_USER }
2026-01-13 12:58:53 +00:00
when@test:
security:
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
algorithm: auto
cost: 4
time_cost: 3
memory_cost: 10