test: fix test login password to match bcrypt hash
Fixed loginTestUser to use 'Test@Pass123!' (with @ symbol) to match the bcrypt hash that was generated using Go's golang.org/x/crypto/bcrypt library.
This commit is contained in:
1 parent
034e261c78
commit
17e0fc2625
1 file changed
+1
-1
@@ -203,7 +203,7 @@ func loginTestUser(t *testing.T, ts *httptest.Server, db *database.Queries) stri
|
|||||||
|
|
||||||
loginRequest := map[string]interface{}{
|
loginRequest := map[string]interface{}{
|
||||||
"login": "testuser@example.com",
|
"login": "testuser@example.com",
|
||||||
"password": "TestPass123!",
|
"password": "Test@Pass123!",
|
||||||
}
|
}
|
||||||
body, _ := json.Marshal(loginRequest)
|
body, _ := json.Marshal(loginRequest)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user