|
|
|
|
|
|
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Security\Http\Authenticator\AbstractLoginFormAuthenticator; |
|
|
use Symfony\Component\Security\Http\Authenticator\AbstractLoginFormAuthenticator; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\CsrfTokenBadge; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\CsrfTokenBadge; |
|
|
|
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\RememberMeBadge; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Credentials\PasswordCredentials; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Credentials\PasswordCredentials; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Passport; |
|
|
use Symfony\Component\Security\Http\Authenticator\Passport\Passport; |
|
|
|
|
|
|
|
|
return $this->userStore->getOneByEmail($userIdentifier); |
|
|
return $this->userStore->getOneByEmail($userIdentifier); |
|
|
}), |
|
|
}), |
|
|
new PasswordCredentials($password), |
|
|
new PasswordCredentials($password), |
|
|
[new CsrfTokenBadge('authenticate', $csrfToken)] |
|
|
|
|
|
|
|
|
[ |
|
|
|
|
|
new CsrfTokenBadge('authenticate', $csrfToken), |
|
|
|
|
|
new RememberMeBadge() |
|
|
|
|
|
] |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|