Compare commits

...

2 Commits

Author SHA1 Message Date
7239d841d4 Merge pull request 'ANO - Suppresion du lower sur la colonne mail de la requête suite au login, traitement du lwoer en PHP' (#51) from fix-lower-mail into develop
Some checks reported warnings
Cadoles/hydra-sql/pipeline/head This commit is unstable
Reviewed-on: #51
2025-03-07 14:15:40 +01:00
a5d5a18190 fix(mail): suppresion du lower sur la colonne mail de la requête suite au login, traitement du lwoer en PHP
Some checks are pending
Cadoles/hydra-sql/pipeline/head Build started...
Cadoles/hydra-sql/pipeline/pr-develop Build started...
2025-03-07 14:01:40 +01:00
2 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,6 @@ class SQLLoginRequest
{
$fields = join(',', array_merge($this->getPasswordFields(), $this->getDataFields()));
return 'SELECT '.$fields.' FROM '.$this->getTableName().' WHERE LOWER('.$this->getLoginColumnName().') = LOWER(:'.$this->getLoginColumnName().');';
return 'SELECT '.$fields.' FROM '.$this->getTableName().' WHERE '.$this->getLoginColumnName().' = :'.$this->getLoginColumnName().';';
}
}

View File

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