Only allow 3 requests per second. Return "429 Too Many Requests" when this rate is exceeded.
17 lines
486 B
HTML
17 lines
486 B
HTML
{{ template "header" . }}
|
|
|
|
<div class="py-4 container">
|
|
<h1>Login</h1>
|
|
<form class="py-3" action="/admin" method="post">
|
|
|
|
<input type="password" name="password" autofocus required placeholder="Enter password">
|
|
|
|
<p class="my-1 orange" style="visibility:{{ if .FailedLoginMsg }}visible{{ else }}hidden{{ end }};">{{ .FailedLoginMsg }}</p>
|
|
|
|
<button class="btn btn-primary" type="submit">Login</button>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{ template "footer" . }}
|