<commit_before># To get started with security, check out the documentation:
# https://symfony.com/doc/current/security.html
security:

    encoders:
        FOS\UserBundle\Model\UserInterface: sha512
        Symfony\Component\Security\Core\User\User: plaintext

    role_hierarchy:
        ROLE_SUPER_ADMIN: [ROLE_ADMIN]
        ROLE_ADMIN:       [ROLE_USER]
        ROLE_USER:        [ROLE_SONATA_ADMIN]

    # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
    providers:
        chain_provider:
            chain:
              providers: [hardcoded, database]
        hardcoded:
            memory:
              users:
                  robbert: { password: "<PASSWORD>", roles: ['ROLE_SUPER_ADMIN'] }
                  phedra: { password: "<PASSWORD>", roles: ['ROLE_SUPER_ADMIN'] }
        database:
            id: fos_user.user_provider.username_email

    firewalls:
        # disables authentication for assets and the profiler, adapt it according to your needs
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            anonymous: ~
            form_login:
              login_path: project3_security_login
              check_path: project3_security_login
            logout:
              path: project3_security_logout
            remember_me:
              secret:   '%secret%'
              lifetime: 604800 # 1 week
              path:     /

    access_control:
      - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/admin, roles: ROLE_ADMIN }
#      - { path: ^/, roles: ROLE_USER }<commit_msg>small fix security /account restrictions<commit_after># To get started with security, check out the documentation:
# https://symfony.com/doc/current/security.html
security:

    encoders:
        FOS\UserBundle\Model\UserInterface: sha512
        Symfony\Component\Security\Core\User\User: plaintext

    role_hierarchy:
        ROLE_SUPER_ADMIN: [ROLE_ADMIN]
        ROLE_ADMIN:       [ROLE_USER]
        ROLE_USER:        [ROLE_SONATA_ADMIN]

    # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
    providers:
        chain_provider:
            chain:
              providers: [hardcoded, database]
        hardcoded:
            memory:
              users:
                  robbert: { password: "<PASSWORD>", roles: ['ROLE_SUPER_ADMIN'] }
                  phedra: { password: "<PASSWORD>", roles: ['ROLE_SUPER_ADMIN'] }
        database:
            id: fos_user.user_provider.username_email

    firewalls:
        # disables authentication for assets and the profiler, adapt it according to your needs
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            anonymous: ~
            form_login:
              login_path: project3_security_login
              check_path: project3_security_login
            logout:
              path: project3_security_logout
            remember_me:
              secret:   '%secret%'
              lifetime: 604800 # 1 week
              path:     /

    access_control:
      - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/admin, roles: ROLE_ADMIN }
      - { path: ^/account, roles: ROLE_USER }
#      - { path: ^/, roles: ROLE_USER }
{'fraction_non_alphanumeric': 0.095252314123619, 'fraction_numerical': 0.007763511495968946, 'mean_word_length': 1.920662598081953, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5259223', 'n_tokens_mistral': 1013, 'n_tokens_neox': 988, 'n_words': 200}