2020-12-15 16:40:14 +00:00
|
|
|
{{ define "title" }}
|
2021-01-15 21:07:51 +00:00
|
|
|
<title>{{ string .Blog.Lang "login" }} - {{ .Blog.Title }}</title>
|
2020-12-15 16:40:14 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<h1>{{ string .Blog.Lang "login" }}</h1>
|
|
|
|
<form class="fw-form p" method="post">
|
|
|
|
<input type="hidden" name="loginaction" value="login">
|
|
|
|
<input type="hidden" name="loginmethod" value="{{ .Data.loginmethod }}">
|
|
|
|
<input type="hidden" name="loginheaders" value="{{ .Data.loginheaders }}">
|
|
|
|
<input type="hidden" name="loginbody" value="{{ .Data.loginbody }}">
|
2021-02-28 07:57:15 +00:00
|
|
|
<input type="text" name="username" autocomplete="username" placeholder="{{ string .Blog.Lang "username" }}">
|
|
|
|
<input type="password" name="password" autocomplete="current-password" placeholder="{{ string .Blog.Lang "password" }}">
|
|
|
|
{{ if .Data.totp }}
|
|
|
|
<input type="text" name="token" inputmode="numeric" pattern="[0-9]*" autocomplete="one-time-code" placeholder="{{ string .Blog.Lang "totp" }}">
|
|
|
|
{{ end }}
|
2020-12-15 16:40:14 +00:00
|
|
|
<input class="fw" type="submit" value="{{ string .Blog.Lang "login" }}">
|
|
|
|
</form>
|
2021-02-27 07:31:06 +00:00
|
|
|
{{ include "author" . }}
|
2020-12-15 16:40:14 +00:00
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "login" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|