mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 19:59:37 +00:00
Update parentClient.ts
Removed headers
This commit is contained in:
parent
602529171f
commit
454e45d746
1 changed files with 1 additions and 4 deletions
|
|
@ -33,13 +33,10 @@ export class ParentClient extends BaseClient {
|
|||
formData.append("logintype", "existing");
|
||||
formData.append("password", this.password);
|
||||
formData.append("recaptcha-token", "no-token-available");
|
||||
const headers = new Headers({
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
});
|
||||
|
||||
const response = await fetch(BASE_URL + "/parent/login", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
headers: headers,
|
||||
redirect: "manual",
|
||||
});
|
||||
if (response.status != 302 || !response.headers.has("set-cookie")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue