mirror of https://github.com/1Panel-dev/1Panel
feat(system): Fix Issue Allowing Access via Old Secure Entry After Mo… (#7659)
Refs https://github.com/1Panel-dev/1Panel/issues/7658pull/7661/head
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…
Reference in New Issue