diff --git a/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java b/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java index 8633b3c7..474ce217 100644 --- a/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java +++ b/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java @@ -63,12 +63,14 @@ public void onApplicationEvent(UiUserSignedInEvent event) { } userRepository.updateLastLoginDate(Instant.ofEpochMilli(event.getTimestamp()), username); + /* TODO: Do not generate personal project for now. Waiting for requirements if (MapUtils.isEmpty(acquireUser(event.getAuthentication()).getOrganizationDetails())) { User user = userRepository.findByLogin(username) .orElseThrow(() -> new ReportPortalException(ErrorType.USER_NOT_FOUND, username)); Project project = personalProjectService.generatePersonalProject(user); user.getProjects().addAll(project.getUsers()); } + */ } private ReportPortalUser acquireUser(Authentication authentication) {