Use new authentication and hashing system

This commit is contained in:
Jannis Portmann 2021-09-04 12:59:08 +02:00
parent 10e250a1da
commit b2428f6ae3
4 changed files with 17 additions and 13 deletions

View file

@ -1,6 +1,11 @@
security:
encoders:
enable_authenticator_manager: true
password_hashers:
# use your user class name here
App\Entity\User:
# Use native password hasher, which auto-selects the best
# possible hashing algorithm (starting from Symfony 5.3 this is "bcrypt")
algorithm: auto
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
@ -15,7 +20,6 @@ security:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: true
lazy: true
provider: app_user_provider
guard: