-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
SecurityValidatoractionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.
Description
The documentation should warn about the following:
- A password must have a max length validator (and the max value is
4096
as of Symfony 2.4 -- see [Security] limited the password length passed to encoders symfony#9100). - As of Symfony 2.4, when creating a custom encoder,
$this->checkPasswordLength($raw);
must be the first code executed inencodePassword()
andisPasswordValid()
. For other versions of Symfony, just copy paste the code of thecheckPasswordLength()
method found inSymfony\Component\Security\Core\Encoder\BasePasswordEncoder
.
Not sure where to add these recommendations though.
Metadata
Metadata
Assignees
Labels
SecurityValidatoractionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.