wisski-cloud-distillery/internal/dis/component/auth/panel/templates/totp_enroll.html
Tom Wiesing d235ee4e5c
Refactor html templates
This commit entirely refactors the use of html templates. Instead of
inheriting from a shared template, we insert the results into a base
template.
2023-01-23 11:41:20 +01:00

17 lines
No EOL
594 B
HTML

{{ define "form/button" }}Enable{{ end }}
{{ define "form/inside" }}
<div>
<a href="{{ .TOTPURL }}">
<img src="{{ .TOTPImage }}" alt="TOTP Enrollment Image">
</a>
<ul>
<li>
Scan or click the token above to add it to a <a href="https://en.wikipedia.org/wiki/Time-based_one-time_password">TOTP</a> app
</li>
<li>
Alternatively enter the secret <code>{{ .TOTPSecret }}</code> into your app directly
</li>
<li>Next, enter your current password and the now generated token to confirm</li>
</ul>
</div>
{{ end }}