/
home
/
obinna
/
html
/
mixchief_app
/
config
/
packages
/
Upload File
HOME
security: encoders: App\Entity\Users: algorithm: bcrypt # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: # used to reload user from session & other features (e.g. switch_user) app_user_provider: entity: class: App\Entity\Users property: email firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: true guard: authenticators: - App\Security\LoginFormAuthenticator logout: path: app_logout remember_me: secret: '%kernel.secret%' lifetime: 2592000 # activate different ways to authenticate # http_basic: true # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate # form_login: true # https://symfony.com/doc/current/security/form_login_setup.html # Easy way to control access for large sections of your site # Note: Only the *first* access control that matches will be used access_control: - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/email/*, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/password/*, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/checkout, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/order/*, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/payment/*, roles: ROLE_USER } - { path: ^/admin/*, roles: ROLE_USER } - { path: ^/pos/*, roles: ROLE_USER } - { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY } # - { path: ^/profile, roles: ROLE_USER }