禅道bug修改

This commit is contained in:
liang.chao 2025-04-16 18:42:55 +08:00
parent 6b88066ec0
commit c56cf4cfa5
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ public class BnsSecurityConfig extends WebSecurityConfigurerAdapter {
http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
http.authorizeRequests() http.authorizeRequests()
.antMatchers("/", "/*.html", "/favicon.ico", "/css/**", "/js/**", "/fonts/**", "/layui/**", "/img/**" .antMatchers("/", "/*.html", "/favicon.ico", "/css/**", "/js/**", "/fonts/**", "/layui/**", "/img/**"
, "/webjars/**", "/pages/**","/login", , "/webjars/**", "/pages/**","/login","/loginApp/**",
"/statics/**","/websocketServer/**","/api/download/**") "/statics/**","/websocketServer/**","/api/download/**")
.permitAll().anyRequest().authenticated(); .permitAll().anyRequest().authenticated();
http.formLogin().loginProcessingUrl("/login") http.formLogin().loginProcessingUrl("/login")

View File

@ -34,7 +34,7 @@ public class TokenServiceImpl implements TokenService {
@Override @Override
public Token saveToken(LoginUser loginUser) { public Token saveToken(LoginUser loginUser) {
// String token = UUID.randomUUID().toString(); // String token = UUID.randomUUID().toString();
String token=JwtHelper.createToken(loginUser); String token = JwtHelper.createToken(loginUser);
loginUser.setToken(token); loginUser.setToken(token);
cacheLoginUser(loginUser); cacheLoginUser(loginUser);
// 登陆日志 // 登陆日志

View File

@ -68,7 +68,7 @@
#{userCode}, #{userCode},
</if> </if>
#{sex}, #{orgId},#{loginType}, #{roleId}, #{userType}, #{sex}, #{orgId},#{loginType}, #{roleId}, #{userType},
#{state}, 1,
#{password}, #{password},
<if test="teamId != null and teamId != ''"> <if test="teamId != null and teamId != ''">
#{teamId}, #{teamId},