Skip to content

Commit 89b37a1

Browse files
committed
Check null password
1 parent 9506f8a commit 89b37a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/PasswordHasher/EventListener/PasswordHasherListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737

3838
public function registerPassword(FormEvent $event)
3939
{
40-
if ('' === $event->getData()) {
40+
if (null === $event->getData() || '' === $event->getData()) {
4141
return;
4242
}
4343

0 commit comments

Comments
 (0)