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()
|
||||
if entrance != "" {
|
||||
rootRouter.GET("/"+entrance, func(c *gin.Context) {
|
||||
entrance = authService.GetSecurityEntrance()
|
||||
if entrance == "" {
|
||||
currentEntrance := authService.GetSecurityEntrance()
|
||||
if currentEntrance == "" || currentEntrance != entrance {
|
||||
handleNoRoute(c)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user