Ver Fonte

crytp password

Vincent há 2 anos atrás
pai
commit
b833faf270
2 ficheiros alterados com 5 adições e 1 exclusões
  1. 4 0
      config/packages/docker/security.yaml
  2. 1 1
      config/packages/security.yaml

+ 4 - 0
config/packages/docker/security.yaml

@@ -0,0 +1,4 @@
+security:
+    encoders:
+        App\Entity\Person\Person:
+            algorithm: plaintext

+ 1 - 1
config/packages/security.yaml

@@ -121,7 +121,7 @@ security:
 
     encoders:
         App\Entity\Person\Person:
-            algorithm: plaintext
+            algorithm: bcrypt
 
     # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
     providers: