1
0
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:
zhengkunwang 2025-01-07 14:09:32 +08:00 committed by GitHub
parent 56fc9ea428
commit 95ec6c62ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,8 +126,8 @@ func setWebStatic(rootRouter *gin.RouterGroup) {
entrance := authService.GetSecurityEntrance()
if entrance != "" {
rootRouter.GET("/"+entrance, func(c *gin.Context) {
entrance = authService.GetSecurityEntrance()
if entrance == "" {
currentEntrance := authService.GetSecurityEntrance()
if currentEntrance == "" || currentEntrance != entrance {
handleNoRoute(c)
return
}