From b7f9b225c2bc1a0f8fac356b0f8f22806d5f75cc Mon Sep 17 00:00:00 2001 From: Bertrand Gauthier <bertrand.gauthier@unicaen.fr> Date: Fri, 25 Jan 2019 15:55:34 +0100 Subject: [PATCH] =?UTF-8?q?Nettoyage=20exception=20PDOException=20non=20la?= =?UTF-8?q?nc=C3=A9e=20puisque=20qu'inexistante.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UnicaenAuth/Authentication/Adapter/Db.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/UnicaenAuth/Authentication/Adapter/Db.php b/src/UnicaenAuth/Authentication/Adapter/Db.php index 2e9a870..c216906 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; } -- GitLab