vspd/webapi/templates/login.html
jholdstock 62803147f0 webapi: Rate limit for admin login requests.
Only allow 3 requests per second. Return "429 Too Many Requests" when this rate is exceeded.
2023-03-15 10:45:54 +00:00

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" . }}