fix (oidc timeout) #31: ajout d'une règle de redirection en cas de donnée de session perdue
Some checks reported warnings
Cadoles/hydra-sql/pipeline/head This commit is unstable
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable

This commit is contained in:
2024-04-18 17:13:42 +02:00
parent cd888d2080
commit bcc91a17b4
3 changed files with 37 additions and 30 deletions

View File

@ -17,7 +17,7 @@ class SQLLoginService extends AbstractController
$this->sqlLoginRequest = $sqlLoginRequest;
}
public function fetchDatas($login)
public function fetchDatas(string $login)
{
try {
$dbh = $this->getConnection();
@ -36,12 +36,7 @@ class SQLLoginService extends AbstractController
return $datas;
}
/**
* @param mixed $login
*
* @return bool
*/
public function fetchPassword($login)
public function fetchPassword(string $login)
{
try {
$dbh = $this->getConnection();
@ -57,7 +52,7 @@ class SQLLoginService extends AbstractController
return [
$password[$this->sqlLoginRequest->getPasswordColumnName()],
isset($password[$this->sqlLoginRequest->getSaltColumnName()]) ? $password[$this->sqlLoginRequest->getSaltColumnName()] : null,
];
];
}
return false;