summary refs log tree commit diff
path: root/api/scripts/stresstest/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'api/scripts/stresstest/src/login')
-rw-r--r--api/scripts/stresstest/src/login/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/scripts/stresstest/src/login/index.js b/api/scripts/stresstest/src/login/index.js

index bd9fea87..ab6c9719 100644 --- a/api/scripts/stresstest/src/login/index.js +++ b/api/scripts/stresstest/src/login/index.js
@@ -1,14 +1,14 @@ const fetch = require("node-fetch"); const fs = require("fs"); -var config = require("./../../config.json"); +let config = require("./../../config.json"); module.exports = login; async function login(account) { - var body = { + let body = { fingerprint: "805826570869932034.wR8vi8lGlFBJerErO9LG5NViJFw", login: account.email, password: account.password }; - var x = await fetch(config.url + "/auth/login", { + let x = await fetch(config.url + "/auth/login", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body)