Merge pull request 'fix(login) #59 : handle case earlier during login' (#60) from issue-59 into develop
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit

Reviewed-on: #60
Reviewed-by: Valentin Carroy <vcarroy@cadoles.com>
This commit is contained in:
2025-08-18 11:09:18 +02:00
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class SQLLoginUserAuthenticator extends AbstractLoginFormAuthenticator
public function authenticate(Request $request): SelfValidatingPassport
{
$form = $request->request->all(key: 'login');
$login = $form['login'];
$login = \strtolower($form['login']);
$plaintextPassword = $form['password'];
$session = $request->getSession();
try {

View File

@ -28,7 +28,6 @@ class SQLLoginService extends AbstractController
public function fetchPasswordAndDatas(string $login): array
{
$dataRequest = $this->sqlLoginRequest->getDatasRequest();
$login = \strtolower($login);
$datas = $this->executeRequestWithLogin($dataRequest, $login);
return $datas;