From 134562c3d9c09fa0fb3e2be3e8efe806b6ccb360 Mon Sep 17 00:00:00 2001 From: protonmatter Date: Tue, 17 Nov 2026 16:39:44 -0500 Subject: [PATCH] Drop the unused database import and align the password constants. --- server/auth.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/auth.go b/server/auth.go index 006d5fc..b3532d1 100644 --- a/server/auth.go +++ b/server/auth.go @@ -19,7 +19,6 @@ import ( "golang.org/x/crypto/bcrypt" "github.com/Autumn-27/artex/config" - "github.com/Autumn-27/artex/db" ) const ( @@ -27,7 +26,7 @@ const ( authPassKey = "auth.password_hash" authPwdVersionKey = "auth.password_version" jwtTTL = 7 * 24 * time.Hour - keyChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + keyChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" // The lower bound matches the setup page's frontend validation — validation that // lives only in the frontend is as good as none: hitting the API directly bypasses