Hi, I cannot add my own symbols, is it possible someway? I tried to defined own option and parameter to it
$generator
->setLength(25)
->setOptionValue(RequirementPasswordGenerator::OPTION_UPPER_CASE, true)
->setOptionValue(RequirementPasswordGenerator::OPTION_LOWER_CASE, true)
->setOptionValue(RequirementPasswordGenerator::OPTION_NUMBERS, true)
->setOption($symbols, array('type' => Option::TYPEBOOLEAN, 'default' => false))
->setParameter($symbols, '!@#$%^&*?~-,.+')
->setOptionValue($symbols, true)
but i allways get Hackzilla\PasswordGenerator\Exception\InvalidOptionException. Is there some way to defined it? I need to generate password with specifical symbols. Thanks
Hi, I cannot add my own symbols, is it possible someway? I tried to defined own option and parameter to it $generator ->setLength(25) ->setOptionValue(RequirementPasswordGenerator::OPTION_UPPER_CASE, true) ->setOptionValue(RequirementPasswordGenerator::OPTION_LOWER_CASE, true) ->setOptionValue(RequirementPasswordGenerator::OPTION_NUMBERS, true) ->setOption($symbols, array('type' => Option::TYPEBOOLEAN, 'default' => false)) ->setParameter($symbols, '!@#$%^&*?~-,.+') ->setOptionValue($symbols, true)
but i allways get Hackzilla\PasswordGenerator\Exception\InvalidOptionException. Is there some way to defined it? I need to generate password with specifical symbols. Thanks