From b4b0d966340ad9c892f8b8912eebc6118eed7482 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 20:52:04 +0800 Subject: Use cmd/forge for the entry point --- fedauth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fedauth.go') diff --git a/fedauth.go b/fedauth.go index 43cb4e3..fd84047 100644 --- a/fedauth.go +++ b/fedauth.go @@ -1,7 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-only // SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -package main +package forge import ( "bufio" @@ -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 (s *server) 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 @@ -77,7 +77,7 @@ func (s *server) fedauth(ctx context.Context, userID int, service, remoteUsernam } var txn pgx.Tx - if txn, err = s.database.Begin(ctx); err != nil { + if txn, err = s.Database.Begin(ctx); err != nil { return false, err } defer func() { -- cgit v1.2.3