mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
feat(system): Fix Issue Allowing Access via Old Secure Entry After Mo… (#7659)
Refs https://github.com/1Panel-dev/1Panel/issues/7658
This commit is contained in:
parent
56fc9ea428
commit
95ec6c62ef
@ -126,8 +126,8 @@ func setWebStatic(rootRouter *gin.RouterGroup) {
|
|||||||
entrance := authService.GetSecurityEntrance()
|
entrance := authService.GetSecurityEntrance()
|
||||||
if entrance != "" {
|
if entrance != "" {
|
||||||
rootRouter.GET("/"+entrance, func(c *gin.Context) {
|
rootRouter.GET("/"+entrance, func(c *gin.Context) {
|
||||||
entrance = authService.GetSecurityEntrance()
|
currentEntrance := authService.GetSecurityEntrance()
|
||||||
if entrance == "" {
|
if currentEntrance == "" || currentEntrance != entrance {
|
||||||
handleNoRoute(c)
|
handleNoRoute(c)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user