blob: 3f4cab44ed1858755c407b8bd015ce379e92c38f (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<script>
addEventListener('load', () => {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
if (urlParams.has('err')) {
document.body.classList.add('err');
}
});
</script>
<style>
.errortext {
display: none;
color: red;
}
.err .errortext {
display: unset;
}
html {
height: 100dvh;
background-color: #EEE;
}
body {
height: 100%;
margin: 0px;
display: flex;
}
.content {
text-align: left;
margin: auto;
padding: 50px;
background-color: #CCC;
}
form > * {
display: block;
margin: 10px 0px;
}
</style>
</head>
<body>
<div class="content">
<h1>Login Page</h1>
<form method="post" action="auth">
<div><label for="user">Username: </label><input type="text" name="user"></div>
<div><label for="pass">Password: </label><input type="password" name="pass"></div>
<div><label for="remember">Remember Me: </label><input type="checkbox" name="remember"></div>
<input type="submit" value="Login">
<div class="errortext">Could not verify login</div>
</form>
</div>
</body>
</html>
|