8000 [Security] validate empty passwords again · symfony/symfony@432c723 · GitHub
[go: up one dir, main page]

Skip to content

Commit 432c723

Browse files
committed
[Security] validate empty passwords again
1 parent 62fdf9c commit 432c723

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Security/Core/Validator/Constraints/UserPasswordValidator.php

Lines changed: 0 additions & 4 deletions
68E7
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ public function validate($password, Constraint $constraint)
3939
throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\UserPassword');
4040
}
4141

42-
if (null === $password || '' === $password) {
43-
return;
44-
}
45-
4642
$user = $this->tokenStorage->getToken()->getUser();
4743

4844
if (!$user instanceof UserInterface) {

0 commit comments

Comments
 (0)
0