security:
    password_hashers:
        Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'

    providers:
        app_user_provider:
            entity:
                class: App\Entity\User
                property: email

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false

        main:
            lazy: true
            provider: app_user_provider
            form_login:
                login_path: app_login
                check_path: app_login
                default_target_path: app_dashboard
                username_parameter: email
                password_parameter: password
            logout:
                path: app_logout
                target: app_login
            remember_me:
                secret: '%kernel.secret%'
                lifetime: 604800

    access_control:
        - { path: ^/login,               roles: PUBLIC_ACCESS }
        - { path: ^/register,            roles: PUBLIC_ACCESS }
        - { path: ^/verify-email,        roles: PUBLIC_ACCESS }
        - { path: ^/resend-verification, roles: PUBLIC_ACCESS }
        - { path: ^/forgot-password,     roles: PUBLIC_ACCESS }
        - { path: ^/reset-password,      roles: PUBLIC_ACCESS }
        - { path: ^/admin,               roles: ROLE_ADMIN }
        - { path: ^/,                    roles: ROLE_USER }
