diff --git a/backend/tests/verify_login_test.go b/backend/tests/verify_login_test.go index e196ca9..cd8b2b9 100644 --- a/backend/tests/verify_login_test.go +++ b/backend/tests/verify_login_test.go @@ -28,7 +28,8 @@ func TestVerifyLogin(t *testing.T) { if dbURL == "" { dbURL = "postgres://yuki:xl1zfmr6e9bb@db-60059.dc-sp-1.absamcloud.com:26868/gohorsejobs_dev?sslmode=require" } - pepper := "gohorse-pepper" + // Updated to match deployed backend .env + pepper := "some-random-string-for-password-hashing" password := "Admin@2025!" // Connect DB @@ -52,7 +53,7 @@ func TestVerifyLogin(t *testing.T) { fmt.Printf("🔍 Found hash in DB: %s\n", hash) // Check expected hash (from migration 010) - expectedHash := "$2a$10$/AodyEEQtKCjdeNThEUFee6QE/KvEBTzi1AnqQ78nwavkT1XFnw/6" + expectedHash := "$2a$10$x7AN/r8MpVylJnd2uq4HT.lZbbNCqHuBuadpsr4xV.KlsleITmR5." if hash != expectedHash { t.Logf("⚠️ Hash in DB doesn't match migration 010 hash") t.Logf(" Expected: %s", expectedHash)