feat (gestion exceptions) #19: traitement retour: typage, un seul message pour erreur login ou mdp
Some checks reported warnings
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable

This commit is contained in:
2024-04-29 10:44:38 +02:00
parent 3e45119684
commit 0791727694
6 changed files with 23 additions and 32 deletions

View File

@ -51,7 +51,7 @@ class SQLLoginService extends AbstractController
return $datas;
}
public function fetchPassword(string $login)
public function fetchPassword($login): array|bool
{
try {
$dbh = $this->getConnection();