diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:52:04 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 20:52:04 +0800 |
commit | b4b0d966340ad9c892f8b8912eebc6118eed7482 (patch) | |
tree | 0512a6dd5cfc21fbd91a07d31f972aa2a1cf844d /users.go | |
parent | git2c: git2c.go -> client.go, a more sensible name (diff) | |
download | forge-b4b0d966340ad9c892f8b8912eebc6118eed7482.tar.gz forge-b4b0d966340ad9c892f8b8912eebc6118eed7482.tar.zst forge-b4b0d966340ad9c892f8b8912eebc6118eed7482.zip |
Use cmd/forge for the entry point
Diffstat (limited to 'users.go')
-rw-r--r-- | users.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-only // SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org> -package main +package forge import ( "context" @@ -12,10 +12,10 @@ import ( // addUserSSH adds a new user solely based on their SSH public key. // // TODO: Audit all users of this function. -func (s *server) addUserSSH(ctx context.Context, pubkey string) (userID int, err error) { +func (s *Server) addUserSSH(ctx context.Context, pubkey string) (userID int, err error) { var txn pgx.Tx - if txn, err = s.database.Begin(ctx); err != nil { + if txn, err = s.Database.Begin(ctx); err != nil { return } defer func() { |