From b21d3a6a5b97eef87a2e645d0cd1b22c9f4ae757 Mon Sep 17 00:00:00 2001 From: L_DelOff <51275636+LDelOff@users.noreply.github.com> Date: Sat, 4 Mar 2023 21:48:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B5=D1=84=D0=BE=D0=BB=D1=82=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B0?= =?UTF-8?q?=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ldeloff/hedgehogcloud/config/WebSecurityConfig.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ru/ldeloff/hedgehogcloud/config/WebSecurityConfig.java b/src/main/java/ru/ldeloff/hedgehogcloud/config/WebSecurityConfig.java index fbfe448..83fa1b4 100644 --- a/src/main/java/ru/ldeloff/hedgehogcloud/config/WebSecurityConfig.java +++ b/src/main/java/ru/ldeloff/hedgehogcloud/config/WebSecurityConfig.java @@ -9,16 +9,16 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.NoOpPasswordEncoder; -import ru.ldeloff.hedgehogcloud.service.UserService; +import ru.ldeloff.hedgehogcloud.service.UserServiceImpl; @Configuration @EnableWebSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { - UserService userService; + UserServiceImpl userService; AuthenticationSuccessUserHandler authenticationSuccessUserHandler; - public WebSecurityConfig(UserService userService, AuthenticationSuccessUserHandler authenticationSuccessUserHandler) { + public WebSecurityConfig(UserServiceImpl userService, AuthenticationSuccessUserHandler authenticationSuccessUserHandler) { this.userService = userService; this.authenticationSuccessUserHandler = authenticationSuccessUserHandler; } @@ -32,7 +32,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { protected void configure(HttpSecurity http) throws Exception { http.formLogin() // указываем страницу с формой логина - .loginPage("/login") + //.loginPage("/login") //указываем логику обработки при логине .successHandler(authenticationSuccessUserHandler) // указываем action с формы логина