Warning: Undefined variable $namespace in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 3
;
Warning: Undefined variable $use_statements in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 5
class
Warning: Undefined variable $class_name in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 7
extends AbstractLoginFormAuthenticator { use TargetPathTrait; public const LOGIN_ROUTE = 'app_login'; private
Warning: Undefined variable $use_typed_properties in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 13
$urlGenerator; public function __construct(UrlGeneratorInterface $urlGenerator) { $this->urlGenerator = $urlGenerator; } public function authenticate(Request $request): Passport { $
Warning: Undefined variable $username_field_var in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 22
= $request->request->get('
Warning: Undefined variable $username_field in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 22
', ''); $request->getSession()->set(Security::LAST_USERNAME, $
Warning: Undefined variable $username_field_var in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 24
); return new Passport( new UserBadge($
Warning: Undefined variable $username_field_var in /home2/zpcu9479/public_html/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 27
), new PasswordCredentials($request->request->get('password', '')), [ new CsrfTokenBadge('authenticate', $request->request->get('_csrf_token')), ] ); } public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response { if ($targetPath = $this->getTargetPath($request->getSession(), $firewallName)) { return new RedirectResponse($targetPath); } // For example: // return new RedirectResponse($this->urlGenerator->generate('some_route')); throw new \Exception('TODO: provide a valid redirect inside '.__FILE__); } protected function getLoginUrl(Request $request): string { return $this->urlGenerator->generate(self::LOGIN_ROUTE); } }