diff --git a/src/UnicaenAuth/Authentication/Adapter/Db.php b/src/UnicaenAuth/Authentication/Adapter/Db.php index 2e9a8704a72e4e89cdeef78a30443d38061a7341..c216906cad54541e8b4308cb81a3bf33939fe859 100644 --- a/src/UnicaenAuth/Authentication/Adapter/Db.php +++ b/src/UnicaenAuth/Authentication/Adapter/Db.php @@ -1,9 +1,9 @@ <?php + namespace UnicaenAuth\Authentication\Adapter; -use PDOException; -use Zend\ServiceManager\Exception\ServiceNotFoundException; use UnicaenAuth\Options\ModuleOptions; +use Zend\ServiceManager\Exception\ServiceNotFoundException; use Zend\ServiceManager\ServiceManager; use Zend\ServiceManager\ServiceManagerAwareInterface; use ZfcUser\Authentication\Adapter\AdapterChainEvent as AuthEvent; @@ -39,13 +39,10 @@ class Db extends \ZfcUser\Authentication\Adapter\Db implements ServiceManagerAwa try { $result = parent::authenticate($e); } - catch (PDOException $e) { - return false; - } catch (ServiceNotFoundException $e) { return false; } - + return $result; }