@b01lers/ctfd-api 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/client.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ class CTFdClient {
|
|
|
62
62
|
const res = await fetch(`${this.url}/login`);
|
|
63
63
|
const [session] = res.headers.getSetCookie()[0].split("; ");
|
|
64
64
|
const nonce = extractNonce(await res.text());
|
|
65
|
-
const formData = new
|
|
65
|
+
const formData = new URLSearchParams();
|
|
66
66
|
formData.append("name", this.username);
|
|
67
67
|
formData.append("password", this.password);
|
|
68
68
|
formData.append("_submit", "Submit");
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -87,7 +87,7 @@ export class CTFdClient {
|
|
|
87
87
|
const [session] = res.headers.getSetCookie()[0].split('; ');
|
|
88
88
|
const nonce = extractNonce(await res.text());
|
|
89
89
|
|
|
90
|
-
const formData = new
|
|
90
|
+
const formData = new URLSearchParams();
|
|
91
91
|
formData.append('name', this.username);
|
|
92
92
|
formData.append('password', this.password);
|
|
93
93
|
formData.append('_submit', 'Submit');
|