8000 [SecurityBundle] Changed encoder configuration example to bcrypt · symfony/symfony@a55058f · GitHub
[go: up one dir, main page]

Skip to content

Commit a55058f

Browse files
jeremyFreeAgentfabpot
authored andcommitted
[SecurityBundle] Changed encoder configuration example to bcrypt
1 parent 0572866 commit a55058f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,10 @@ private function addEncodersSection(ArrayNodeDefinition $rootNode)
407407
->children()
408408
->arrayNode('encoders')
409409
->example(array(
410-
'Acme\DemoBundle\Entity\User1' => 'sha512',
411-
'Acme\DemoBundle\Entity\User2' => array(
412-
'algorithm' => 'sha512',
413-
'encode_as_base64' => 'true',
414-
'iterations' => 5000,
410+
'AppBundle\Entity\User1' => 'bcrypt',
411+
'AppBundle\Entity\User2' => array(
412+
'algorithm' => 'bcrypt',
413+
'cost' => 13,
415414
),
416415
))
417416
->requiresAtLeastOneElement()

0 commit comments

Comments
 (0)
0