Commit b7f9b225 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Nettoyage exception PDOException non lancée puisque qu'inexistante.

parent f38c4ce0
<?php <?php
namespace UnicaenAuth\Authentication\Adapter; namespace UnicaenAuth\Authentication\Adapter;
use PDOException;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
use UnicaenAuth\Options\ModuleOptions; use UnicaenAuth\Options\ModuleOptions;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
use Zend\ServiceManager\ServiceManager; use Zend\ServiceManager\ServiceManager;
use Zend\ServiceManager\ServiceManagerAwareInterface; use Zend\ServiceManager\ServiceManagerAwareInterface;
use ZfcUser\Authentication\Adapter\AdapterChainEvent as AuthEvent; use ZfcUser\Authentication\Adapter\AdapterChainEvent as AuthEvent;
...@@ -39,13 +39,10 @@ class Db extends \ZfcUser\Authentication\Adapter\Db implements ServiceManagerAwa ...@@ -39,13 +39,10 @@ class Db extends \ZfcUser\Authentication\Adapter\Db implements ServiceManagerAwa
try { try {
$result = parent::authenticate($e); $result = parent::authenticate($e);
} }
catch (PDOException $e) {
return false;
catch (ServiceNotFoundException $e) { catch (ServiceNotFoundException $e) {
return false; return false;
} }
return $result; return $result;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment