Skip to content

Commit

Permalink
Make oauth2 code clear. Move oauth2 provider code to their own packag…
Browse files Browse the repository at this point in the history
…es/files (#32148)

Fix #30266
Replace #31533
  • Loading branch information
lunny authored Oct 2, 2024
1 parent 70b7df0 commit 3a4a1bf
Show file tree
Hide file tree
Showing 11 changed files with 933 additions and 888 deletions.
3 changes: 2 additions & 1 deletion routers/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import (
markup_service "code.gitea.io/gitea/services/markup"
repo_migrations "code.gitea.io/gitea/services/migrations"
mirror_service "code.gitea.io/gitea/services/mirror"
"code.gitea.io/gitea/services/oauth2_provider"
pull_service "code.gitea.io/gitea/services/pull"
release_service "code.gitea.io/gitea/services/release"
repo_service "code.gitea.io/gitea/services/repository"
Expand Down Expand Up @@ -144,7 +145,7 @@ func InitWebInstalled(ctx context.Context) {
log.Info("ORM engine initialization successful!")
mustInit(system.Init)
mustInitCtx(ctx, oauth2.Init)

mustInitCtx(ctx, oauth2_provider.Init)
mustInit(release_service.Init)

mustInitCtx(ctx, models.Init)
Expand Down
Loading

0 comments on commit 3a4a1bf

Please sign in to comment.