~gitpocket/gitpocket

1
330f2c8fb5306fa4dd4c12600d7dbc79856be191
mainfeed-discovery
gitpocket/templates/totpsetup.html -rw-r--r--686 bytes ViewLogBlameView rawPermalink a3d84a990a feat(basin): mail, password reset, totp, issues, stars, rename, transfer, archive, blame, compare, downloads, feeds, admin commands 15 hours ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{{define "content"}}
<div class="panel"><h3>Enable two factor authentication</h3>
<div class="twocol">
<div><img src="{{.Data.QR}}" alt="" width="200" height="200"><p class="muted small">Scan with any TOTP app, or enter the secret by hand: <code>{{.Data.Secret}}</code></p></div>
<form method="post" action="/settings/totp/enable" class="stack">
<input type="hidden" name="token" value="{{.Data.Token}}">
<label>Code from the app <input name="code" required autofocus inputmode="numeric" autocomplete="one-time-code"></label>
<div class="actions left"><button class="btn primary">Enable ▸</button><a class="btn" href="/settings/security">Cancel</a></div>
</form>
</div></div>
{{end}}