This commit entirely refactors the use of html templates. Instead of inheriting from a shared template, we insert the results into a base template.
11 lines
No EOL
430 B
HTML
11 lines
No EOL
430 B
HTML
{{ template "form.html" . }}
|
|
{{ define "form/button" }}Enable{{ end }}
|
|
{{ define "form/inside" }}
|
|
<div>
|
|
<ul>
|
|
<li>Use this page to add a <a href="https://en.wikipedia.org/wiki/Time-based_one-time_password">TOTP</a> token to your account</li>
|
|
<li>You will not be able to login without the second factor</li>
|
|
<li>If you forget your token, only an administrator can reset it</li>
|
|
</ul>
|
|
</div>
|
|
{{ end }} |