Warning: Undefined variable $namespace in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 3
;
Warning: Undefined variable $user_is_entity in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 5

Warning: Undefined variable $user_is_entity in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 6
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
Warning: Undefined variable $user_needs_encoder in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 11
use Symfony\Component\Security\Core\Exception\InvalidCsrfTokenException; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Csrf\CsrfToken; use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface; use Symfony\Component\Security\Guard\Authenticator\AbstractFormLoginAuthenticator;
Warning: Undefined variable $user_needs_encoder in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 20
use Symfony\Component\Security\Http\Util\TargetPathTrait; class
Warning: Undefined variable $class_name in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 23
extends AbstractFormLoginAuthenticator { use TargetPathTrait; public const LOGIN_ROUTE = 'app_login';
Warning: Undefined variable $user_is_entity in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 29
private $urlGenerator; private $csrfTokenManager;
Warning: Undefined variable $user_needs_encoder in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 32
public function __construct(
Warning: Undefined variable $user_is_entity in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 34
UrlGeneratorInterface $urlGenerator, CsrfTokenManagerInterface $csrfTokenManager
Warning: Undefined variable $user_needs_encoder in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 34
) {
Warning: Undefined variable $user_is_entity in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 36
$this->urlGenerator = $urlGenerator; $this->csrfTokenManager = $csrfTokenManager;
Warning: Undefined variable $user_needs_encoder in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 39
} public function supports(Request $request) { return self::LOGIN_ROUTE === $request->attributes->get('_route') && $request->isMethod('POST'); } public function getCredentials(Request $request) { $credentials = [ '
Warning: Undefined variable $username_field in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 51
' => $request->request->get('
Warning: Undefined variable $username_field in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 51
'), 'password' => $request->request->get('password'), 'csrf_token' => $request->request->get('_csrf_token'), ]; $request->getSession()->set( Security::LAST_USERNAME, $credentials['
Warning: Undefined variable $username_field in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 57
'] ); return $credentials; } public function getUser($credentials, UserProviderInterface $userProvider) { $token = new CsrfToken('authenticate', $credentials['csrf_token']); if (!$this->csrfTokenManager->isTokenValid($token)) { throw new InvalidCsrfTokenException(); }
Warning: Undefined variable $user_is_entity in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 70

Warning: Undefined variable $username_field in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 73
// Load / create our user however you need. // You can do this by calling the user provider, or with custom logic here. $user = $userProvider->loadUserByUsername($credentials['']); if (!$user) { throw new UsernameNotFoundException('
Warning: Undefined variable $username_field_label in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 76

Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 76
could not be found.'); } return $user; } public function checkCredentials($credentials, UserInterface $user) {
Warning: Undefined variable $user_needs_encoder in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 84
// Check the user's password or other credentials and return true or false // If there are no credentials to check, you can just return true throw new \Exception('TODO: check the credentials inside '.__FILE__); } public function onAuthenticationSuccess(Request $request, TokenInterface $token,
Warning: Undefined variable $provider_key_type_hint in /home/microfrlnn/espace-pro/vendor/symfony/maker-bundle/src/Resources/skeleton/authenticator/LoginFormAuthenticator.tpl.php on line 100
$providerKey) { if ($targetPath = $this->getTargetPath($request->getSession(), $providerKey)) { 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() { return $this->urlGenerator->generate(self::LOGIN_ROUTE); } }