forked from viny1ic/relaytouille
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
26 lines (26 loc) · 986 Bytes
/
admin.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
<!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">
<script src="https://www.myersdaily.org/joseph/javascript/md5.js"></script>
<title>Login</title>
</head>
<body>
<form id="login">
Username: <input type="text" name="username" id="username"><br>
Password: <input type="password" name="password" id="password"><br>
<button onclick="login()">Login</button>
</form>
<script>
function login(){
console.log(document.getElementById("login").elements[0].value)
if(document.getElementById("login").elements[0].value=='admin' && md5(document.getElementById("login").elements[1].value)=='42f749ade7f9e195bf475f37a44cafcb'){
window.location.href = "console.html"
console.log('suck cess')
}
}
</script>
</body>
</html>