BUGFIX: better security
This commit is contained in:
parent
01f385f6d5
commit
dd0635e35b
@ -11,13 +11,13 @@ security:
|
||||
property: email
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js|health)/
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
login:
|
||||
pattern: ^/?(%enabled_locales%)/(login|login_check|health)(?=.*)
|
||||
pattern: ^/?(%enabled_locales%)?/(health)$
|
||||
security: false
|
||||
main:
|
||||
pattern: ^\/(.*)
|
||||
pattern: ^/(.*)
|
||||
provider: app_user_provider
|
||||
|
||||
form_login:
|
||||
@ -41,5 +41,5 @@ security:
|
||||
# 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|login_check|health)(?=.*), roles: ROLE_USER }
|
||||
- { path: ^/?(%enabled_locales%)?/job, roles: ROLE_USER }
|
||||
# - { path: ^/profile, roles: ROLE_USER }
|
||||
|
@ -3,22 +3,27 @@ default:
|
||||
defaults:
|
||||
_controller: App\Controller\SecurityController::loginAction
|
||||
|
||||
health:
|
||||
path: '/health'
|
||||
defaults:
|
||||
_controller: App\Controller\SiteController::healthAction
|
||||
|
||||
login:
|
||||
path: '/{_locale}/login'
|
||||
defaults:
|
||||
_controller: App\Controller\SecurityController::loginAction
|
||||
|
||||
login_check:
|
||||
path: '/login_check'
|
||||
|
||||
logout:
|
||||
path: '/logout'
|
||||
|
||||
health:
|
||||
path: '/health'
|
||||
defaults:
|
||||
_controller: App\Controller\SiteController::healthAction
|
||||
|
||||
default_locale:
|
||||
path: '/{_locale}'
|
||||
defaults:
|
||||
_controller: App\Controller\SecurityController::loginAction
|
||||
|
||||
login:
|
||||
path: '/{_locale}/login'
|
||||
defaults:
|
||||
_controller: App\Controller\SecurityController::loginAction
|
||||
|
||||
job_index:
|
||||
path: '/{_locale}/job'
|
||||
defaults:
|
||||
|
Loading…
x
Reference in New Issue
Block a user