GoBlog/templates/captcha.gohtml

22 lines
877 B
Plaintext
Raw Normal View History

2021-01-23 16:24:47 +00:00
{{ define "title" }}
<title>{{ mdtitle .Blog.Title }}</title>
2021-01-23 16:24:47 +00:00
{{ end }}
{{ define "main" }}
<main>
<p><img src="/captcha/{{ .Data.captchaid }}.png" class="captchaimg"></p>
2021-07-22 11:41:52 +00:00
<form class="fw p" method="post">
2021-01-23 16:24:47 +00:00
<input type="hidden" name="captchaaction" value="captcha">
<input type="hidden" name="captchamethod" value="{{ .Data.captchamethod }}">
<input type="hidden" name="captchaheaders" value="{{ .Data.captchaheaders }}">
<input type="hidden" name="captchabody" value="{{ .Data.captchabody }}">
<input type="hidden" name="captchaid" value="{{ .Data.captchaid }}">
2021-05-14 16:24:02 +00:00
<input type="text" name="digits" placeholder="{{ string .Blog.Lang "captchainstructions" }}" required>
2021-07-22 11:41:52 +00:00
<input type="submit" value="{{ string .Blog.Lang "submit" }}">
2021-01-23 16:24:47 +00:00
</form>
</main>
{{ end }}
{{ define "captcha" }}
{{ template "base" . }}
{{ end }}