diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:21:32 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:21:32 +0800 |
commit | 71ab9b7f14118f02dd18cd733bd4e0ad19ece590 (patch) | |
tree | 0303cbee651a4e1cee62a348d25066b9543f4425 /fedauth.go | |
parent | git2d: Remove UTF-8 checks (diff) | |
download | forge-71ab9b7f14118f02dd18cd733bd4e0ad19ece590.tar.gz forge-71ab9b7f14118f02dd18cd733bd4e0ad19ece590.tar.zst forge-71ab9b7f14118f02dd18cd733bd4e0ad19ece590.zip |
config shall no longer be a global variable
Diffstat (limited to 'fedauth.go')
-rw-r--r-- | fedauth.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |