aboutsummaryrefslogtreecommitdiff
path: root/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'users.go')
-rw-r--r--users.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/users.go b/users.go
index f0dabce..1b31f3a 100644
--- a/users.go
+++ b/users.go
@@ -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 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 = database.Begin(ctx); err != nil {
+ if txn, err = s.database.Begin(ctx); err != nil {
return
}
defer func() {