refactor(login): 移除登录签名验证相关代码
This commit is contained in:
@@ -52,8 +52,6 @@ public class LoginController {
|
||||
CorePlatformUniqueService corePlatformUniqueService;
|
||||
@Autowired
|
||||
GlobalConfig globalConfig;
|
||||
@Autowired
|
||||
TsTokenConfig tsTokenConfig;
|
||||
|
||||
|
||||
/**
|
||||
@@ -64,7 +62,7 @@ public class LoginController {
|
||||
@GetMapping("/unique/redirect")
|
||||
@OperationIgnore
|
||||
public void uniqueIndex(UniqueIndexDTO dto, HttpServletResponse response) {
|
||||
if (tsTokenConfig.isValidLoginSign() && !dto.validSign()) {
|
||||
if (!dto.validSign()) {
|
||||
corePlatformUniqueService.redirect(null, dto.getTo(), dto.getExtra(), response);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ public class TsTokenConfig {
|
||||
private String encryptKey = "%kIp9frQCu";
|
||||
private Integer expireHours = 48;
|
||||
private String[] ignorePaths;
|
||||
private boolean validLoginSign = true;
|
||||
|
||||
|
||||
/**
|
||||
@@ -110,7 +109,8 @@ public class TsTokenConfig {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// setter\getter
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// ////////////////////////////////////////////////////////////////////////
|
||||
|
||||
public Map<String, TokenBean> getTestMap() {
|
||||
return testMap;
|
||||
@@ -144,11 +144,4 @@ public class TsTokenConfig {
|
||||
this.ignorePaths = ignorePaths;
|
||||
}
|
||||
|
||||
public boolean isValidLoginSign() {
|
||||
return validLoginSign;
|
||||
}
|
||||
|
||||
public void setValidLoginSign(boolean validLoginSign) {
|
||||
this.validLoginSign = validLoginSign;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user