GoBlog/templates/login.gohtml

26 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-12-15 16:40:14 +00:00
{{ define "title" }}
2021-08-04 20:48:50 +00:00
<title>{{ string .Blog.Lang "login" }} - {{ mdtext .Blog.Title }}</title>
2020-12-15 16:40:14 +00:00
{{ end }}
{{ define "main" }}
<main>
<h1>{{ string .Blog.Lang "login" }}</h1>
2021-07-22 11:41:52 +00:00
<form class="fw p" method="post">
2020-12-15 16:40:14 +00:00
<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 }}
2021-07-22 11:41:52 +00:00
<input type="submit" value="{{ string .Blog.Lang "login" }}">
2020-12-15 16:40:14 +00:00
</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 }}