diff --git a/pom.xml b/pom.xml
index 1480a70..a40fae0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
pom
springboot-parent
杭州铁晟科技有限公司基础依赖
@@ -59,49 +59,49 @@
com.tiesheng.springboot-parent
springboot-database
- 2.0.28
+ 2.0.30
com.tiesheng.springboot-parent
springboot-login
- 2.0.28
+ 2.0.30
com.tiesheng.springboot-parent
springboot-web
- 2.0.28
+ 2.0.30
com.tiesheng.springboot-parent
springboot-util
- 2.0.28
+ 2.0.30
com.tiesheng.springboot-parent
springboot-platform
- 2.0.28
+ 2.0.30
com.tiesheng.springboot-parent
springboot-message
- 2.0.28
+ 2.0.30
com.tiesheng.springboot-parent
springboot-role
- 2.0.28
+ 2.0.30
com.tiesheng.springboot-parent
springboot-annotation
- 2.0.28
+ 2.0.30
diff --git a/springboot-ademo/pom.xml b/springboot-ademo/pom.xml
index 156e8b3..45cf84e 100644
--- a/springboot-ademo/pom.xml
+++ b/springboot-ademo/pom.xml
@@ -6,11 +6,11 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-ademo
- 2.0.28
+ 2.0.30
8
diff --git a/springboot-annotation/pom.xml b/springboot-annotation/pom.xml
index a562216..656109b 100644
--- a/springboot-annotation/pom.xml
+++ b/springboot-annotation/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-annotation
diff --git a/springboot-chart/pom.xml b/springboot-chart/pom.xml
index 93851a1..d08bb16 100644
--- a/springboot-chart/pom.xml
+++ b/springboot-chart/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-chart
diff --git a/springboot-database/pom.xml b/springboot-database/pom.xml
index 65b42e6..b84bc47 100644
--- a/springboot-database/pom.xml
+++ b/springboot-database/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-database
diff --git a/springboot-login/pom.xml b/springboot-login/pom.xml
index c197c41..ffd99f7 100644
--- a/springboot-login/pom.xml
+++ b/springboot-login/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-login
diff --git a/springboot-login/src/main/java/com/tiesheng/login/controller/LoginController.java b/springboot-login/src/main/java/com/tiesheng/login/controller/LoginController.java
index 28819dc..b019355 100644
--- a/springboot-login/src/main/java/com/tiesheng/login/controller/LoginController.java
+++ b/springboot-login/src/main/java/com/tiesheng/login/controller/LoginController.java
@@ -52,6 +52,8 @@ public class LoginController {
CorePlatformUniqueService corePlatformUniqueService;
@Autowired
GlobalConfig globalConfig;
+ @Autowired
+ TsTokenConfig tsTokenConfig;
/**
@@ -62,7 +64,7 @@ public class LoginController {
@GetMapping("/unique/redirect")
@OperationIgnore
public void uniqueIndex(UniqueIndexDTO dto, HttpServletResponse response) {
- if (!dto.validSign()) {
+ if (tsTokenConfig.isValidLoginSign() && !dto.validSign()) {
corePlatformUniqueService.redirect(null, dto.getTo(), dto.getExtra(), response);
return;
}
diff --git a/springboot-message/pom.xml b/springboot-message/pom.xml
index 5b97055..627555c 100644
--- a/springboot-message/pom.xml
+++ b/springboot-message/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-message
diff --git a/springboot-platform/pom.xml b/springboot-platform/pom.xml
index 20586a2..4652c2d 100644
--- a/springboot-platform/pom.xml
+++ b/springboot-platform/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-platform
diff --git a/springboot-role/pom.xml b/springboot-role/pom.xml
index 34097ad..67176d2 100644
--- a/springboot-role/pom.xml
+++ b/springboot-role/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-role
diff --git a/springboot-util/pom.xml b/springboot-util/pom.xml
index 8fc2634..89e904c 100644
--- a/springboot-util/pom.xml
+++ b/springboot-util/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-util
diff --git a/springboot-util/src/main/java/com/tiesheng/util/config/TsTokenConfig.java b/springboot-util/src/main/java/com/tiesheng/util/config/TsTokenConfig.java
index b5ac954..d6ec7f5 100644
--- a/springboot-util/src/main/java/com/tiesheng/util/config/TsTokenConfig.java
+++ b/springboot-util/src/main/java/com/tiesheng/util/config/TsTokenConfig.java
@@ -38,6 +38,7 @@ public class TsTokenConfig {
private String encryptKey = "%kIp9frQCu";
private Integer expireHours = 48;
private String[] ignorePaths;
+ private boolean validLoginSign = false;
/**
@@ -144,4 +145,12 @@ public class TsTokenConfig {
this.ignorePaths = ignorePaths;
}
+ public boolean isValidLoginSign() {
+ return validLoginSign;
+ }
+
+ public void setValidLoginSign(boolean validLoginSign) {
+ this.validLoginSign = validLoginSign;
+ }
+
}
diff --git a/springboot-web/pom.xml b/springboot-web/pom.xml
index 4cc4ee4..86f981d 100644
--- a/springboot-web/pom.xml
+++ b/springboot-web/pom.xml
@@ -6,7 +6,7 @@
com.tiesheng.springboot-parent
springboot-parent
- 2.0.28
+ 2.0.30
springboot-web