Skip to content

Commit

Permalink
Update UsernameNotFoundException message
Browse files Browse the repository at this point in the history
Closes gh-16497

Signed-off-by: tejas-teju <[email protected]>
  • Loading branch information
Tejas-Teju authored and jzheaux committed Jan 31, 2025
1 parent 67c1438 commit ffcb672
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public UserDetails updatePassword(UserDetails user, String newPassword) {
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
UserDetails user = this.users.get(username.toLowerCase(Locale.ROOT));
if (user == null) {
throw new UsernameNotFoundException(username);
throw new UsernameNotFoundException("user '" + username + "' not found");
}
if (user instanceof CredentialsContainer) {
return user;
Expand Down

0 comments on commit ffcb672

Please sign in to comment.