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
  • Loading branch information
lunny committed Sep 27, 2024
1 parent 8a9fd7f commit dd69cfd
Show file tree
Hide file tree
Showing 9 changed files with 917 additions and 868 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"
oauth2_provider "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 dd69cfd

Please sign in to comment.