소스 검색

Polish Exception Message

This error message provides more context around which credentials failed.

Issue gh-16494
Josh Cummings 6 달 전
부모
커밋
43ddf73ddb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/src/main/java/org/springframework/security/authentication/ott/OneTimeTokenAuthenticationProvider.java

+ 1 - 1
core/src/main/java/org/springframework/security/authentication/ott/OneTimeTokenAuthenticationProvider.java

@@ -62,7 +62,7 @@ public final class OneTimeTokenAuthenticationProvider implements AuthenticationP
 			return authenticated;
 		}
 		catch (UsernameNotFoundException ex) {
-			throw new BadCredentialsException("Authentication failed.");
+			throw new BadCredentialsException("Failed to authenticate the one-time token");
 		}
 	}