Skip to content

Commit 4269cb0

Browse files
lenverwinch
authored andcommitted
update comments
1 parent 9c33a86 commit 4269cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/springframework/security/authentication/ProviderManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public Authentication authenticate(Authentication authentication)
238238
((CredentialsContainer) result).eraseCredentials();
239239
}
240240

241-
// If the parent AuthenticationManager was attempted and successful than it will publish an AuthenticationSuccessEvent
241+
// If the parent AuthenticationManager was attempted and successful then it will publish an AuthenticationSuccessEvent
242242
// This check prevents a duplicate AuthenticationSuccessEvent if the parent AuthenticationManager already published it
243243
if (parentResult == null) {
244244
eventPublisher.publishAuthenticationSuccess(result);
@@ -255,7 +255,7 @@ public Authentication authenticate(Authentication authentication)
255255
"No AuthenticationProvider found for {0}"));
256256
}
257257

258-
// If the parent AuthenticationManager was attempted and failed than it will publish an AbstractAuthenticationFailureEvent
258+
// If the parent AuthenticationManager was attempted and failed then it will publish an AbstractAuthenticationFailureEvent
259259
// This check prevents a duplicate AbstractAuthenticationFailureEvent if the parent AuthenticationManager already published it
260260
if (parentException == null) {
261261
prepareException(lastException, authentication);

0 commit comments

Comments
 (0)