禅道bug修改
This commit is contained in:
parent
6b88066ec0
commit
c56cf4cfa5
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
// 登陆日志
|
// 登陆日志
|
||||||
|
|
|
||||||
|
|
@ -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},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue