优化代码

pull/63/MERGE
awenes 2023-10-01 21:37:04 +08:00
parent dd8a9a864e
commit 04f165a450
1 changed files with 0 additions and 23 deletions

View File

@ -54,9 +54,6 @@ import cn.topiam.employee.audit.event.AuditEventPublish;
import cn.topiam.employee.authentication.common.jackjson.AuthenticationJacksonModule;
import cn.topiam.employee.common.constant.AuthorizeConstants;
import cn.topiam.employee.common.entity.setting.SettingEntity;
import cn.topiam.employee.common.repository.account.OrganizationRepository;
import cn.topiam.employee.common.repository.account.UserElasticSearchRepository;
import cn.topiam.employee.common.repository.account.UserRepository;
import cn.topiam.employee.common.repository.setting.AdministratorRepository;
import cn.topiam.employee.common.repository.setting.SettingRepository;
import cn.topiam.employee.console.security.handler.*;
@ -64,9 +61,7 @@ import cn.topiam.employee.console.security.listener.ConsoleAuthenticationFailure
import cn.topiam.employee.console.security.listener.ConsoleAuthenticationSuccessEventListener;
import cn.topiam.employee.console.security.listener.ConsoleLogoutSuccessEventListener;
import cn.topiam.employee.console.security.listener.ConsoleSessionInformationExpiredStrategy;
import cn.topiam.employee.core.dynamic.UserSyncTask;
import cn.topiam.employee.core.security.form.FormLoginSecretFilter;
import cn.topiam.employee.support.autoconfiguration.SupportProperties;
import cn.topiam.employee.support.geo.GeoLocationService;
import cn.topiam.employee.support.jackjson.SupportJackson2Module;
import cn.topiam.employee.support.security.authentication.WebAuthenticationDetailsSource;
@ -357,24 +352,6 @@ public class ConsoleSecurityConfiguration implements BeanClassLoaderAware {
return new GenericJackson2JsonRedisSerializer(mapper);
}
/**
* es
*
* @param supportProperties {@link SupportProperties}
* @param userElasticSearchRepository {@link UserElasticSearchRepository}
* @param userRepository {@link UserRepository}
* @param organizationRepository {@link OrganizationRepository}
* @return {@link UserSyncTask}
*/
@Bean
public UserSyncTask userSyncTask(SupportProperties supportProperties,
UserElasticSearchRepository userElasticSearchRepository,
UserRepository userRepository,
OrganizationRepository organizationRepository) {
return new UserSyncTask(supportProperties, userElasticSearchRepository, userRepository,
organizationRepository);
}
/**
* WebAuthenticationDetailsSource
*