aboutsummaryrefslogtreecommitdiffstats
path: root/services/auth/signin.go
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-10-11 06:24:07 +0200
committerGitHub <noreply@github.com>2023-10-11 04:24:07 +0000
commitebe803e514acb4eedc884226be2489ee6b4acd28 (patch)
tree3f4d38f8267142dcd0e8df7d76cd4fe04c47b85e /services/auth/signin.go
parent50166d1f7c6df41c79561b094e29c9698c0000d5 (diff)
downloadgitea-ebe803e514acb4eedc884226be2489ee6b4acd28.tar.gz
gitea-ebe803e514acb4eedc884226be2489ee6b4acd28.zip
Penultimate round of `db.DefaultContext` refactor (#27414)
Part of #27065 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'services/auth/signin.go')
-rw-r--r--services/auth/signin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/auth/signin.go b/services/auth/signin.go
index 6d515ac628..5fdf6d2bd7 100644
--- a/services/auth/signin.go
+++ b/services/auth/signin.go
@@ -56,7 +56,7 @@ func UserSignIn(ctx context.Context, username, password string) (*user_model.Use
}
if hasUser {
- source, err := auth.GetSourceByID(user.LoginSource)
+ source, err := auth.GetSourceByID(ctx, user.LoginSource)
if err != nil {
return nil, nil, err
}
@@ -85,7 +85,7 @@ func UserSignIn(ctx context.Context, username, password string) (*user_model.Use
}
}
- sources, err := auth.AllActiveSources()
+ sources, err := auth.AllActiveSources(ctx)
if err != nil {
return nil, nil, err
}