Skip to content

Commit

Permalink
#82 fix : findByEmail 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
rivkode committed Apr 25, 2024
1 parent b16b04c commit 294339e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class UserDetailsServiceImpl implements UserDetailsService {

@Override
public UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {
User user = userRepository.findByEmail(email)
.orElseThrow(() -> new UsernameNotFoundException("Not found" + email));
User user = userRepository.findByEmail(email);
// .orElseThrow(() -> new UsernameNotFoundException("Not found" + email));
return new UserDetailsImpl(user);
}
}

0 comments on commit 294339e

Please sign in to comment.