remove unused line
This commit is contained in:
+2
-3
@@ -27,9 +27,8 @@ let found = false;
|
|||||||
|
|
||||||
async function tryCandidate(candidate) {
|
async function tryCandidate(candidate) {
|
||||||
const url = "http://localhost:3000/login";
|
const url = "http://localhost:3000/login";
|
||||||
console.log(`Trying candidate (masked): ${candidate.replace(/.(?=.{2})/g, '*')}`); // mask except last 2 chars
|
console.log(`Trying candidate (masked): ${candidate.replace(/.(?=.{2})/g, '*')}`);
|
||||||
|
const body = {username: USERNAME, password: candidate};
|
||||||
const body = {username: USERNAME, password: candidate}; // lowercase keys (match server)
|
|
||||||
try {
|
try {
|
||||||
const resp = await fetch(url, {
|
const resp = await fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user