Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
b7f9b225
Commit
b7f9b225
authored
Jan 25, 2019
by
Bertrand Gauthier
Browse files
Nettoyage exception PDOException non lancée puisque qu'inexistante.
parent
f38c4ce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Authentication/Adapter/Db.php
View file @
b7f9b225
<?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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment