8000 [SecurityBundle] Passwords are not encoded when algorithm set to "true" by nieuwenhuisen · Pull Request #34738 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[SecurityBundle] Passwords are not encoded when algorithm set to "true" #34738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[SecurityBundle] Passwords are not encoded when algorithm set to \"tr…
…ue\"
  • Loading branch information
Jeroen van den Nieuwenhuisen authored and Robin Chalas committed Dec 3, 2019
commit 83a5517c01c86b31708416425b4b49e73691fab2
Original file line number Diff line number Diff line change
Ex 6626 pand Up @@ -421,7 +421,13 @@ private function addEncodersSection(ArrayNodeDefinition $rootNode)
->performNoDeepMerging()
->beforeNormalization()->ifString()->then(function ($v) { return ['algorithm' => $v]; })->end()
->children()
->scalarNode('algorithm')->cannotBeEmpty()->end()
->scalarNode('algorithm')
->cannotBeEmpty()
->validate()
->ifTrue(function ($v) { return !\is_string($v); })
->thenInvalid('You must provide a string value.')
->end()
->end()
->scalarNode('hash_algorithm')->info('Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms.')->defaultValue('sha512')->end()
->scalarNode('key_length')->defaultValue(40)->end()
->booleanNode('ignore_case')->defaultFalse()->end()
Expand Down
0