This commit is contained in:
Fabien Potencier 2020-02-03 17:31:58 +01:00
parent 72f9e98fea
commit 327ee1a956
2 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ final class NativePasswordEncoder implements PasswordEncoderInterface, SelfSalti
if ('' === $raw) {
return false;
}
if (\strlen($raw) > self::MAX_PASSWORD_LENGTH) {
return false;
}

View File

@ -79,6 +79,7 @@ final class SodiumPasswordEncoder implements PasswordEncoderInterface, SelfSalti
if ('' === $raw) {
return false;
}
if (\strlen($raw) > self::MAX_PASSWORD_LENGTH) {
return false;
}