Skip to content

Commit

Permalink
fix: 解决系统登陆日志泄漏-未授权访问
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 committed Jan 9, 2023
1 parent eead487 commit 0c6774b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/api/v1/v1.go
Expand Up @@ -419,11 +419,12 @@ func WarpedJwtHandler() iris.Handler {
func AddV1Route(app iris.Party) {

v1Party := app.Party("/v1")
v1Party.Use(langHandler())
v1Party.Use(pageHandler())

session.Install(v1Party)
mfa.Install(v1Party)
authParty := v1Party.Party("")
v1Party.Use(langHandler())
v1Party.Use(pageHandler())

authParty.Use(WarpedJwtHandler())
authParty.Use(authHandler())
Expand All @@ -436,7 +437,7 @@ func AddV1Route(app iris.Party) {
user.Install(authParty)
cluster.Install(authParty)
role.Install(authParty)
system.Install(v1Party)
system.Install(authParty)
proxy.Install(authParty)
ws.Install(authParty)
chart.Install(authParty)
Expand Down

0 comments on commit 0c6774b

Please sign in to comment.