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