task--单用户登录配置优化
This commit is contained in:
@ -74,7 +74,7 @@ import java.util.Map;
|
|||||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||||
public class AuthController {
|
public class AuthController {
|
||||||
|
|
||||||
@Value("${single.login:true}")
|
@Value("${single.login}")
|
||||||
private Boolean singleLogin;
|
private Boolean singleLogin;
|
||||||
@Value("${yshop.notify.sms.enable}")
|
@Value("${yshop.notify.sms.enable}")
|
||||||
private Boolean enableSms;
|
private Boolean enableSms;
|
||||||
|
|||||||
@ -124,7 +124,7 @@ public class YxUserServiceImpl extends BaseServiceImpl<YxUserMapper, YxUser> imp
|
|||||||
private WxMaService wxMaService;
|
private WxMaService wxMaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private YxWechatUserService wechatUserService;
|
private YxWechatUserService wechatUserService;
|
||||||
@Value("${single.login:true}")
|
@Value("${single.login}")
|
||||||
private Boolean singleLogin;
|
private Boolean singleLogin;
|
||||||
@Value("${yshop.notify.sms.enable}")
|
@Value("${yshop.notify.sms.enable}")
|
||||||
private Boolean enableSms;
|
private Boolean enableSms;
|
||||||
|
|||||||
@ -51,6 +51,10 @@ spring:
|
|||||||
#连接超时时间
|
#连接超时时间
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
|
# 是否限制单用户登录
|
||||||
|
single:
|
||||||
|
login: true
|
||||||
|
|
||||||
#jwt
|
#jwt
|
||||||
#jwt
|
#jwt
|
||||||
jwt:
|
jwt:
|
||||||
|
|||||||
@ -52,6 +52,10 @@ spring:
|
|||||||
#连接超时时间
|
#连接超时时间
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
|
# 是否限制单用户登录
|
||||||
|
single:
|
||||||
|
login: true
|
||||||
|
|
||||||
#jwt
|
#jwt
|
||||||
jwt:
|
jwt:
|
||||||
header: Authorization
|
header: Authorization
|
||||||
|
|||||||
@ -59,7 +59,7 @@ public class AuthController {
|
|||||||
private Long expiration;
|
private Long expiration;
|
||||||
@Value("${rsa.private_key}")
|
@Value("${rsa.private_key}")
|
||||||
private String privateKey;
|
private String privateKey;
|
||||||
@Value("${single.login:false}")
|
@Value("${single.login}")
|
||||||
private Boolean singleLogin;
|
private Boolean singleLogin;
|
||||||
private final SecurityProperties properties;
|
private final SecurityProperties properties;
|
||||||
private final RedisUtils redisUtils;
|
private final RedisUtils redisUtils;
|
||||||
|
|||||||
@ -45,7 +45,10 @@ spring:
|
|||||||
#连接超时时间
|
#连接超时时间
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
#jwt
|
# 是否限制单用户登录
|
||||||
|
single:
|
||||||
|
login: false
|
||||||
|
|
||||||
#jwt
|
#jwt
|
||||||
jwt:
|
jwt:
|
||||||
header: Authorization
|
header: Authorization
|
||||||
|
|||||||
@ -48,6 +48,10 @@ spring:
|
|||||||
#连接超时时间
|
#连接超时时间
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|
||||||
|
# 是否限制单用户登录
|
||||||
|
single:
|
||||||
|
login: false
|
||||||
|
|
||||||
#jwt
|
#jwt
|
||||||
jwt:
|
jwt:
|
||||||
header: Authorization
|
header: Authorization
|
||||||
|
|||||||
Reference in New Issue
Block a user