Skip to content

Commit fcd6c5a

Browse files
committed
ugly way to handle sort order
1 parent 439ad21 commit fcd6c5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
<?= $user_is_entity ? "use Doctrine\\ORM\\EntityManagerInterface;\n" : null ?>
77
use Symfony\Component\HttpFoundation\RedirectResponse;
88
use Symfony\Component\HttpFoundation\Request;
9+
<?= ($user_needs_encoder && str_contains($password_encoder_details->getUseStatement() , 'Hasher')) ? $password_encoder_details->getUseStatement() : null ?>
910
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1011
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
11-
<?= $user_needs_encoder ? $password_encoder_details->getUseStatement() : null ?>
12+
<?= ($user_needs_encoder && str_contains($password_encoder_details->getUseStatement() , 'Encoder')) ? $password_encoder_details->getUseStatement() : null ?>
1213
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
1314
use Symfony\Component\Security\Core\Exception\InvalidCsrfTokenException;
1415
use Symfony\Component\Security\Core\Security;

0 commit comments

Comments
 (0)