From 148e04dc92807b5465fd17a5891390b53e2bd16b Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 14 五月 2024 16:50:43 +0800
Subject: [PATCH] fix: 新增大屏登录方法,获取菜单

---
 xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java b/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java
index 01a6591..d4f0685 100644
--- a/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java
+++ b/xboot-core/src/main/java/cn/exrick/xboot/core/config/security/WebSecurityConfig.java
@@ -81,7 +81,8 @@
 
     @Override
     protected void configure(AuthenticationManagerBuilder auth) throws Exception {
-        auth.userDetailsService(userDetailsService).passwordEncoder(new BCryptPasswordEncoder());
+        auth.authenticationProvider(new DaoAuthenticationProvider());
+        //auth.userDetailsService(userDetailsService).passwordEncoder(new BCryptPasswordEncoder());
     }
 
     @Override
@@ -131,7 +132,7 @@
                 // 鑷畾涔夋潈闄愭嫆缁濆鐞嗙被
                 .exceptionHandling().accessDeniedHandler(accessDeniedHandler)
                 .and()
-                // 鍥惧舰楠岃瘉鐮佽繃婊ゅ櫒
+                //鍥惧舰楠岃瘉鐮佽繃婊ゅ櫒
                 //.addFilterBefore(imageValidateFilter, UsernamePasswordAuthenticationFilter.class)
                 // 鐭俊楠岃瘉鐮佽繃婊ゅ櫒
                 //.addFilterBefore(smsValidateFilter, UsernamePasswordAuthenticationFilter.class)

--
Gitblit v1.9.1