]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/security.yml
Add ldap
[github/wallabag/wallabag.git] / app / config / security.yml
index 796dc361e1ea202e67cd3f610f283f81502d1020..48fbb553caef9e0fa99a54bcae373fd73affdfd4 100644 (file)
@@ -6,13 +6,14 @@ security:
         ROLE_ADMIN: ROLE_USER
         ROLE_SUPER_ADMIN: [ ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]
 
+    # /!\ This list is modified in WallabagUserBundle when LDAP is enabled
     providers:
         administrators:
             entity:
                 class: WallabagUserBundle:User
                 property: username
         fos_userbundle:
-            id: fos_user.user_provider.username
+            id: fos_user.user_provider.username_email
 
     # the main part of the security, where you can set up firewalls
     # for specific sections of your app
@@ -36,6 +37,7 @@ security:
             pattern: ^/login$
             anonymous:  ~
 
+        # /!\ This section is modified in WallabagUserBundle when LDAP is enabled
         secured_area:
             pattern: ^/
             form_login: