Skip to content

Commit 0c6774b

Browse files
fix: 解决系统登陆日志泄漏-未授权访问
1 parent eead487 commit 0c6774b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/api/v1/v1.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,12 @@ func WarpedJwtHandler() iris.Handler {
419419
func AddV1Route(app iris.Party) {
420420

421421
v1Party := app.Party("/v1")
422-
v1Party.Use(langHandler())
423-
v1Party.Use(pageHandler())
422+
424423
session.Install(v1Party)
425424
mfa.Install(v1Party)
426425
authParty := v1Party.Party("")
426+
v1Party.Use(langHandler())
427+
v1Party.Use(pageHandler())
427428

428429
authParty.Use(WarpedJwtHandler())
429430
authParty.Use(authHandler())
@@ -436,7 +437,7 @@ func AddV1Route(app iris.Party) {
436437
user.Install(authParty)
437438
cluster.Install(authParty)
438439
role.Install(authParty)
439-
system.Install(v1Party)
440+
system.Install(authParty)
440441
proxy.Install(authParty)
441442
ws.Install(authParty)
442443
chart.Install(authParty)

0 commit comments

Comments
 (0)