mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-03-13 09:24:07 +08:00
fix(router): login consent should be for authenticated audience only
This commit is contained in:
2
assets
2
assets
Submodule assets updated: b900a868aa...21a9819433
@@ -326,7 +326,7 @@ func initMasterRouter(dep dependency.Dep) *gin.Engine {
|
||||
controllers.GetAppRegistration,
|
||||
)
|
||||
oauthRouter.POST("consent",
|
||||
middleware.Logging(),
|
||||
middleware.LoginRequired(),
|
||||
controllers.FromJSON[oauth.GrantService](oauth.GrantParamCtx{}),
|
||||
controllers.GrantAppConsent,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user