Modified PR to reflect coding style
This commit is contained in:
@ -14,9 +14,12 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class UserService implements UserDetailsService {
|
||||
|
||||
@Autowired
|
||||
private UserRepository userRepository;
|
||||
|
||||
public UserService(UserRepository userRepository) {
|
||||
this.userRepository = userRepository;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WebGoatUser loadUserByUsername(final String username) throws UsernameNotFoundException {
|
||||
WebGoatUser webGoatUser = userRepository.findByUsername(username);
|
||||
|
Reference in New Issue
Block a user