add pseudo

This commit is contained in:
Olivier PARPAILLON
2024-11-19 14:34:37 +01:00
parent ff1f551726
commit dc01c2e216
7 changed files with 83 additions and 7 deletions

View File

@@ -4,11 +4,8 @@ security:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
providers:
# used to reload user from session & other features (e.g. switch_user)
app_user_provider:
entity:
class: App\Entity\Participant
property: email
id: App\Security\UserProvider
# used to reload user from session & other features (e.g. switch_user)
# used to reload user from session & other features (e.g. switch_user)
firewalls:
@@ -26,6 +23,10 @@ security:
path: app_logout
target: app_login
# where to redirect after logout
remember_me:
secret: '%kernel.secret%'
lifetime: 604800 # 1 week in seconds
#always_remember_me: true
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall