Explorar o código

crytp password

Vincent %!s(int64=2) %!d(string=hai) anos
pai
achega
b833faf270
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  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: