maj: sémantique, révision vérification ppassword
This commit is contained in:
@ -2,11 +2,16 @@ security:
|
||||
enable_authenticator_manager: true
|
||||
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
|
||||
password_hashers:
|
||||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
|
||||
app_hasher:
|
||||
# the service ID of your custom hasher (the FQCN using the default services.yaml)
|
||||
id: 'App\Security\Hasher\PasswordEncoder'
|
||||
# App\Entity\User: 'sha256'
|
||||
# Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
|
||||
# algorithm: 'sha256'
|
||||
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
|
||||
providers:
|
||||
pdo_user_provider:
|
||||
id: App\Security\PdoUserProvider
|
||||
id: App\Security\SQLLoginUserProvider
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
@ -16,7 +21,7 @@ security:
|
||||
stateless: false
|
||||
provider: pdo_user_provider
|
||||
custom_authenticators:
|
||||
- App\Security\PdoUserAuthenticator
|
||||
- App\Security\SQLLoginUserAuthenticator
|
||||
|
||||
entry_point: form_login
|
||||
form_login:
|
||||
|
@ -1,9 +1,9 @@
|
||||
twig:
|
||||
globals:
|
||||
locales: "%app.supported_locales%"
|
||||
default_path: '%kernel.project_dir%/templates'
|
||||
form_themes:
|
||||
- 'bootstrap_5_layout.html.twig'
|
||||
globals:
|
||||
locales: "%app.supported_locales%"
|
||||
when@test:
|
||||
twig:
|
||||
strict_variables: true
|
||||
|
Reference in New Issue
Block a user