Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
0aee6b10
Commit
0aee6b10
authored
Apr 25, 2014
by
Bertrand Gauthier
Browse files
Correction bug survenu avec le module ZfcUser 0.1.3.
parent
a19f7e00
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Authentication/Adapter/Cas.php
View file @
0aee6b10
...
...
@@ -57,6 +57,10 @@ class Cas extends AbstractAdapter implements ServiceManagerAwareInterface, Event
*/
public
function
authenticate
(
AuthEvent
$e
)
{
if
(
$e
->
getIdentity
())
{
return
;
}
$config
=
$this
->
getOptions
()
->
getCas
();
if
(
!
$config
)
{
return
;
// NB: l'authentification CAS est désactivée ssi le tableau des options est vide
...
...
@@ -82,10 +86,6 @@ class Cas extends AbstractAdapter implements ServiceManagerAwareInterface, Event
->
setMessages
(
array
(
'Authentication successful.'
));
$this
->
getEventManager
()
->
trigger
(
'userAuthenticated'
,
$e
);
$e
->
stopPropagation
();
return
true
;
}
/**
...
...
src/UnicaenAuth/Authentication/Adapter/Db.php
View file @
0aee6b10
...
...
@@ -32,6 +32,10 @@ class Db extends \ZfcUser\Authentication\Adapter\Db implements ServiceManagerAwa
*/
public
function
authenticate
(
AuthEvent
$e
)
{
if
(
$e
->
getIdentity
())
{
return
;
}
try
{
$result
=
parent
::
authenticate
(
$e
);
}
...
...
src/UnicaenAuth/Authentication/Adapter/Ldap.php
View file @
0aee6b10
...
...
@@ -108,10 +108,6 @@ class Ldap extends AbstractAdapter implements ServiceManagerAwareInterface, Even
->
setMessages
(
array
(
'Authentication successful.'
));
$this
->
getEventManager
()
->
trigger
(
'userAuthenticated'
,
$e
);
$e
->
stopPropagation
();
return
true
;
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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