From f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 25 Sep 2022 18:24:21 +1000 Subject: Refactor to mono-repo + upgrade packages --- api/scripts/stresstest/src/login/index.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 api/scripts/stresstest/src/login/index.js (limited to 'api/scripts/stresstest/src/login') diff --git a/api/scripts/stresstest/src/login/index.js b/api/scripts/stresstest/src/login/index.js deleted file mode 100644 index bd9fea87..00000000 --- a/api/scripts/stresstest/src/login/index.js +++ /dev/null @@ -1,20 +0,0 @@ -const fetch = require("node-fetch"); -const fs = require("fs"); -var config = require("./../../config.json"); -module.exports = login; -async function login(account) { - var body = { - fingerprint: "805826570869932034.wR8vi8lGlFBJerErO9LG5NViJFw", - login: account.email, - password: account.password - }; - var x = await fetch(config.url + "/auth/login", { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify(body) - }); - console.log(x); - x = await x.json(); - console.log(x); - return x; -} -- cgit 1.5.1