File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -243,13 +243,17 @@ in your application:
243
243
``` yaml
244
244
# app/config/security.yml
245
245
security :
246
+ encoders :
247
+ FOS\UserBundle\Model\UserInterface : sha512
248
+
249
+ role_hierarchy :
250
+ ROLE_ADMIN : ROLE_USER
251
+ ROLE_SUPER_ADMIN : ROLE_ADMIN
252
+
246
253
providers :
247
254
fos_userbundle :
248
255
id : fos_user.user_provider.username
249
256
250
- encoders :
251
- FOS\UserBundle\Model\UserInterface : sha512
252
-
253
257
firewalls :
254
258
main :
255
259
pattern : ^/
@@ -264,10 +268,6 @@ security:
264
268
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
265
269
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
266
270
- { path: ^/admin/, role: ROLE_ADMIN }
267
-
268
- role_hierarchy :
269
- ROLE_ADMIN : ROLE_USER
270
- ROLE_SUPER_ADMIN : ROLE_ADMIN
271
271
` ` `
272
272
273
273
Under the ` providers` section, you are making the bundle's packaged user provider
You can’t perform that action at this time.
0 commit comments