-
Notifications
You must be signed in to change notification settings - Fork 1
/
daystar_credentials.html
37 lines (34 loc) · 1.01 KB
/
daystar_credentials.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
fetch('https://student.daystar.ac.ke/Login/LoginUser', {
method: 'POST',
headers: {
accept: 'application.json',
'Content-Type': 'application/json'
},
body: {
Username: '20-1127',
Password: '@Angrafai01'
},
cache: 'default'
}).then((response) => {
if (!response.ok) {
throw response;
}
return response.json();
})
.then((json) => {
console.log("Done! It's all good");
})
.catch((response) => console.log(response));
</script>
</body>
</html>