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
Some checks reported warnings
Cadoles/hydra-sql/pipeline/head This commit is unstable
Reviewed-on: #51
This commit is contained in:
commit
7239d841d4
@ -103,6 +103,6 @@ class SQLLoginRequest
|
|||||||
{
|
{
|
||||||
$fields = join(',', array_merge($this->getPasswordFields(), $this->getDataFields()));
|
$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().';';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ class SQLLoginService extends AbstractController
|
|||||||
public function fetchPasswordAndDatas(string $login): array
|
public function fetchPasswordAndDatas(string $login): array
|
||||||
{
|
{
|
||||||
$dataRequest = $this->sqlLoginRequest->getDatasRequest();
|
$dataRequest = $this->sqlLoginRequest->getDatasRequest();
|
||||||
|
$login = \strtolower($login);
|
||||||
$datas = $this->executeRequestWithLogin($dataRequest, $login);
|
$datas = $this->executeRequestWithLogin($dataRequest, $login);
|
||||||
|
|
||||||
return $datas;
|
return $datas;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user