-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
69 lines (57 loc) · 1.71 KB
/
login.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<style>
.error {
text-align: center;
color: rgb(160, 29, 29);
font-weight: bolder;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif
}
main {
padding-top: 3rem;
}
form {
text-align: center;
}
form p {
margin-top: 0.8rem;
margin-bottom: 0.8rem;
}
form input {
padding: 0.5rem;
border: 0.1rem solid rgb(220, 220, 220);
border-radius: 0.3rem;
font-size: 1rem;
color: rgb(40, 40, 40);
}
form input:focus {
outline: none;
border-color: rgb(125, 200, 255);
box-shadow: 0 0 0 0.2rem rgb(200, 230, 255);
}
form input[type=submit] {
padding: 0.6rem 0.8rem;
color: rgb(255, 255, 255);
background: rgb(120, 120, 120);
border: 0 none;
cursor: pointer;
}
</style>
</head>
<body>
<main>
{{if .ErrorMessage}}
<div class="error">{{.ErrorMessage}}</div>
{{end}}
<form action="{{.LoginURL}}" method="POST" autocomplete="off">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<input type="hidden" name="return_url" value="{{.ReturnURL}}">
<p><input type="text" id="username" name="username" placeholder="Username" /></p>
<p><input type="password" id="password" name="password" placeholder="Password" /></p>
<input type="submit" value="Login">
</form>
</main>
</body>
</html>