File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Resources/skeleton/authenticator Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 6
6
<?= $ user_is_entity ? "use Doctrine \\ORM \\EntityManagerInterface; \n" : null ?>
7
7
use Symfony\Component\HttpFoundation\RedirectResponse;
8
8
use Symfony\Component\HttpFoundation\Request;
9
+ <?= ($ user_needs_encoder && str_contains ($ password_encoder_details ->getUseStatement () , 'Hasher ' )) ? $ password_encoder_details ->getUseStatement () : null ?>
9
10
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
10
11
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 ?>
12
13
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
13
14
<?= $ user_needs_encoder ? "use Symfony \\Component \\Security \\Core \\Encoder \\UserPasswordEncoderInterface; \n" : null ?>
14
15
use Symfony\Component\Security\Core\Exception\InvalidCsrfTokenException;
You can’t perform that action at this time.
0 commit comments