Skip to content

Commit 20a6775

Browse files
author
Nassim
committed
Modified return statement place
1 parent a7d22e1 commit 20a6775

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cookbook/security/custom_authentication_provider.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ set an authenticated token in the security context if successful.
137137
138138
try {
139139
$authToken = $this->authenticationManager->authenticate($token);
140-
141-
return $this->securityContext->setToken($authToken);
140+
$this->securityContext->setToken($authToken);
141+
142+
return;
142143
} catch (AuthenticationException $failed) {
143144
// ... you might log something here
144145

0 commit comments

Comments
 (0)