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.
This commit is contained in:
2026-02-06 13:52:12 -05:00
parent 014047a1e3
commit 034e261c78
+1 -1
View File
@@ -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",