Daniel Bohry 8 kuukautta sitten
vanhempi
sitoutus
7b1af3b66d

+ 2 - 2
src/main/java/com/danielbohry/authservice/service/user/UserService.java

@@ -21,12 +21,12 @@ public class UserService {
 
     public UserDetailsService userDetailsService() {
         return username -> repository.findByUsernameAndActiveTrue(username)
-                .orElseThrow(() -> new NotFoundException("User not found"));
+            .orElseThrow(() -> new NotFoundException("User not found"));
     }
 
     public ApplicationUser findByUsername(String username) {
         return repository.findByUsernameAndActiveTrue(username)
-                .orElseThrow(() -> new NotFoundException("User not found"));
+            .orElseThrow(() -> new NotFoundException("User not found"));
     }
 
     public ApplicationUser save(ApplicationUser applicationUser) {