From a1691859ca0cb4c1b360c34b05aa74bdba9e582a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 18 Aug 2015 11:08:45 +0200 Subject: implement FosUser --- app/config/security.yml | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'app/config/security.yml') diff --git a/app/config/security.yml b/app/config/security.yml index b9c4cbef..98846656 100644 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -12,6 +12,8 @@ security: providers: administrators: entity: { class: WallabagCoreBundle:User, property: username } + fos_userbundle: + id: fos_user.user_provider.username # the main part of the security, where you can set up firewalls # for specific sections of your app @@ -26,31 +28,12 @@ security: anonymous: ~ secured_area: - pattern: ^/ - anonymous: ~ + pattern: ^/ form_login: - login_path: /login - - use_forward: false - - check_path: /login_check - - post_only: true - - always_use_default_target_path: false - default_target_path: / - target_path_parameter: _target_path - use_referer: true - - failure_path: null - failure_forward: false - - username_parameter: _username - password_parameter: _password - - csrf_parameter: _csrf_token - intention: authenticate + provider: fos_userbundle + csrf_provider: security.csrf.token_manager + anonymous: true remember_me: key: "%secret%" lifetime: 31536000 -- cgit v1.2.3