summaryrefslogtreecommitdiffhomepage
path: root/src/dbx/users.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-06-13 21:56:54 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-06-13 21:56:54 +0200
commitc7ad83472710a7e72d7566b09f2eb223708e1343 (patch)
tree4f76a2dd326344b5f2594d3f3a3d58cf363c3bea /src/dbx/users.go
parentdf7d90ed36da337ff271324476591910f3de9792 (diff)
Make the DB private to dbx
Diffstat (limited to 'src/dbx/users.go')
-rw-r--r--src/dbx/users.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbx/users.go b/src/dbx/users.go
index 2eb3bbd..d8305f8 100644
--- a/src/dbx/users.go
+++ b/src/dbx/users.go
@@ -26,7 +26,7 @@ func CreateUser(user User) error {
return err
}
- _, err = DB.Exec(`
+ _, err = db.Exec(`
INSERT INTO users (
email,
username,
@@ -42,7 +42,7 @@ func Login(username, password string) (User, error) {
password = norm.NFC.String(password)
/* TODO: Pass a context here? */
- rs, err := DB.Query(`SELECT * FROM users WHERE username = ?`, username)
+ rs, err := db.Query(`SELECT * FROM users WHERE username = ?`, username)
if err != nil {
return User{}, err
}