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

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

parent f38c4ce0
<?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;
}
......
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