mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 02:49:11 +00:00
Polish Exception Message
This error message provides more context around which credentials failed. Issue gh-16494
This commit is contained in:
parent
08f71461b4
commit
43ddf73ddb
@ -62,7 +62,7 @@ public final class OneTimeTokenAuthenticationProvider implements AuthenticationP
|
|||||||
return authenticated;
|
return authenticated;
|
||||||
}
|
}
|
||||||
catch (UsernameNotFoundException ex) {
|
catch (UsernameNotFoundException ex) {
|
||||||
throw new BadCredentialsException("Authentication failed.");
|
throw new BadCredentialsException("Failed to authenticate the one-time token");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user