From 034e261c78a3edf0937ba5a8acf0252cf57a7f86 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 6 Feb 2026 13:52:12 -0500 Subject: [PATCH] test: fix test password hash to use Go-generated bcrypt Changed login test password from 'Test@Pass123!' to 'testpass123' and updated bcrypt hash to use Go's golang.org/x/crypto/bcrypt library instead of Python's bcrypt. --- cmd/server/tests/test_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/tests/test_helpers.go b/cmd/server/tests/test_helpers.go index dbda90a..5c491fb 100644 --- a/cmd/server/tests/test_helpers.go +++ b/cmd/server/tests/test_helpers.go @@ -240,7 +240,7 @@ func getTestUserID(t *testing.T, db *database.Queries) uuid.UUID { // If user doesn't exist, create one with a valid password // Password: "Test@Pass123!" meets complexity requirements // This is the bcrypt hash for "Test@Pass123!" - passwordHash := "$2a$10$vYI7j2zvH3vBmGHXqKbqMe.8hKqJVYOvQKHh8fPJWGjVPKpXzGvMqG" + passwordHash := "$2a$10$JjAtK7PPa1WexQC3AUGe8OXLeuseZ/haN1Mz7emMo6CfOvMiTVXWq" newUser, err := db.CreateUser(context.Background(), database.CreateUserParams{ Email: "testuser@example.com",