feat: mise en page de la page login et page accueil
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
security:
|
||||
# Hierarchie des rôles #
|
||||
role_hierarchy:
|
||||
ROLE_ORGANISATION: ROLE_USER
|
||||
ROLE_ADMIN_ORGANISATION: ROLE_ORGANISATION
|
||||
ROLE_ADMIN: ROLE_USER
|
||||
|
||||
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
|
||||
# comment sont hachés nos mots de passe
|
||||
# Comment sont hachés nos mots de passe
|
||||
password_hashers:
|
||||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
|
||||
|
||||
@@ -33,6 +39,7 @@ security:
|
||||
enable_csrf: true
|
||||
username_parameter: _username
|
||||
password_parameter: _password
|
||||
default_target_path: app_home
|
||||
logout:
|
||||
path: app_logout
|
||||
# où rediriger après la déconnexion
|
||||
@@ -56,6 +63,7 @@ security:
|
||||
# autorisations
|
||||
access_control:
|
||||
- { path: ^/admin, roles: ROLE_ADMIN }
|
||||
- { path: ^/organisation, roles: ROLE_ADMIN_ORGANISATION }
|
||||
- { path: ^/user, roles: ROLE_USER }
|
||||
|
||||
when@test:
|
||||
|
||||
Reference in New Issue
Block a user