[SecurityBundle] Passwords are not encoded when algorithm set to \"true\"
This commit is contained in:
parent
cb429cd762
commit
83a5517c01
@ -421,7 +421,13 @@ class MainConfiguration implements ConfigurationInterface
|
|||||||
->performNoDeepMerging()
|
->performNoDeepMerging()
|
||||||
->beforeNormalization()->ifString()->then(function ($v) { return ['algorithm' => $v]; })->end()
|
->beforeNormalization()->ifString()->then(function ($v) { return ['algorithm' => $v]; })->end()
|
||||||
->children()
|
->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('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()
|
->scalarNode('key_length')->defaultValue(40)->end()
|
||||||
->booleanNode('ignore_case')->defaultFalse()->end()
|
->booleanNode('ignore_case')->defaultFalse()->end()
|
||||||
|
Reference in New Issue
Block a user