]> Raphaƫl G. Git Repositories - blogbundle/blobdiff - Resources/config/packages/rapsys_blog.yaml
Enable global csrf protection
[blogbundle] / Resources / config / packages / rapsys_blog.yaml
index b57fc12536cc31a40db91da9c08dd6ab9d6d1a18..deae9f9f7348e2b6352044dc2a095d177fb6a595 100644 (file)
@@ -183,7 +183,7 @@ framework:
         headers:
             X-Originating-IP: '%env(REMOTE_ADDR)%'
     secret: '%env(APP_SECRET)%'
         headers:
             X-Originating-IP: '%env(REMOTE_ADDR)%'
     secret: '%env(APP_SECRET)%'
-    #csrf_protection: true
+    csrf_protection: true
     session:
         enabled: true
         handler_id: ~
     session:
         enabled: true
         handler_id: ~
@@ -200,8 +200,10 @@ security:
         #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures
         #TODO: see https://symfony.com/doc/current/security/passwords.html (sodium ? + upgrade)
         Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
         #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures
         #TODO: see https://symfony.com/doc/current/security/passwords.html (sodium ? + upgrade)
         Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
-            algorithm: 'bcrypt'
+        #Rapsys\BlogBundle\Entity\User:
+            algorithm: 'sodium'
             migrate_from:
             migrate_from:
+                - 'bcrypt'
                 - 'plaintext'
 
     # Set providers
                 - 'plaintext'
 
     # Set providers
@@ -248,7 +250,6 @@ security:
                 # Password parameter
                 password_parameter: 'login[password]'
                 # Enable login csrf protection
                 # Password parameter
                 password_parameter: 'login[password]'
                 # Enable login csrf protection
-                #TODO: enable in framework now that it works here ?
                 enable_csrf: false
                 # Csrf parameter
                 csrf_parameter: 'login[_token]'
                 enable_csrf: false
                 # Csrf parameter
                 csrf_parameter: 'login[_token]'