From 71ab9b7f14118f02dd18cd733bd4e0ad19ece590 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 20:21:32 +0800 Subject: config shall no longer be a global variable --- fedauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fedauth.go') diff --git a/fedauth.go b/fedauth.go index 808fba5..46290e5 100644 --- a/fedauth.go +++ b/fedauth.go @@ -17,7 +17,7 @@ import ( // fedauth checks whether a user's SSH public key matches the remote username // they claim to have on the service. If so, the association is recorded. -func fedauth(ctx context.Context, userID int, service, remoteUsername, pubkey string) (bool, error) { +func (s *server) fedauth(ctx context.Context, userID int, service, remoteUsername, pubkey string) (bool, error) { var err error matched := false -- cgit v1.2.3