Refactored User Details Service (#2)

This commit is contained in:
Art
2021-09-05 15:54:17 +03:00
parent f10236b595
commit f5246366f7

View File

@ -25,7 +25,6 @@ public class UserServiceImpl implements UserService {
.orElseThrow(() -> new UsernameNotFoundException("User with username `" + username + "` not found"));
user.setLastLoginDateDisplay(user.getLastLoginDate());
user.setLastLoginDate(LocalDateTime.now());
userRepository.save(user);
return new UserPrincipal(user);
}
}