]> Raphaƫl G. Git Repositories - blogbundle/blobdiff - Resources/config/packages/rapsys_blog.yaml
Makes created, updated and modified the greatest of each
[blogbundle] / Resources / config / packages / rapsys_blog.yaml
index b57fc12536cc31a40db91da9c08dd6ab9d6d1a18..5511844d5262a5d5527ef2c64a672fcd5dc66a44 100644 (file)
@@ -98,11 +98,9 @@ rapsys_user:
             site: '%rapsys_blog.title%'
     #Edit replacement
     edit:
             site: '%rapsys_blog.title%'
     #Edit replacement
     edit:
-        #field:
-            #mail: false
-            #password: false
-            #pseudonym: false
-            #slug: false
+        admin:
+            mail: true
+            slug: true
         route:
             index: 'root'
         view:
         route:
             index: 'root'
         view:
@@ -183,7 +181,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 +198,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 +248,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]'
@@ -296,6 +295,10 @@ services:
     Rapsys\BlogBundle\Controller\KeywordController:
         arguments: [ '@security.authorization_checker', '@service_container', '@rapsys_user.access_decision_manager', '@doctrine', '@rapsys_pack.facebook_util', '@form.factory', '@rapsys_pack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsys_pack.path_package', '@router', '@rapsys_pack.slugger_util', '@security.helper', '@request_stack', '@translator', '@twig' ]
         tags: [ 'controller.service_arguments' ]
     Rapsys\BlogBundle\Controller\KeywordController:
         arguments: [ '@security.authorization_checker', '@service_container', '@rapsys_user.access_decision_manager', '@doctrine', '@rapsys_pack.facebook_util', '@form.factory', '@rapsys_pack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsys_pack.path_package', '@router', '@rapsys_pack.slugger_util', '@security.helper', '@request_stack', '@translator', '@twig' ]
         tags: [ 'controller.service_arguments' ]
+    #Register user controller
+    Rapsys\BlogBundle\Controller\UserController:
+        arguments: [ '@security.authorization_checker', '@service_container', '@rapsys_user.access_decision_manager', '@doctrine', '@rapsys_pack.facebook_util', '@form.factory', '@rapsys_pack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsys_pack.path_package', '@router', '@rapsys_pack.slugger_util', '@security.helper', '@request_stack', '@translator', '@twig' ]
+        tags: [ 'controller.service_arguments' ]
     Rapsys\BlogBundle\Factory\RepositoryFactory:
         arguments: [ '@request_stack', '@router', '@rapsys_pack.slugger_util', '@translator', '%rapsys_blog.languages%', '%rapsys_blog.locale%' ]
     #Register blog fixture
     Rapsys\BlogBundle\Factory\RepositoryFactory:
         arguments: [ '@request_stack', '@router', '@rapsys_pack.slugger_util', '@translator', '%rapsys_blog.languages%', '%rapsys_blog.locale%' ]
     #Register blog fixture