{{template "base.html" .}} {{define "title"}}Two-factor login{{end}} {{define "content"}} {{if eq .Mode "setup"}}
{{.Error}}
{{end}}Scan this with an authenticator app (Aegis, 2FAS, KeePassXC, any TOTP app). On a phone, tap here to open it in the app.
{{.QR}}Or type the key in:
{{.Secret}}
Type it in as a time-based key, SHA1, 6 digits, 30 seconds (the defaults).
{{else}}Save these recovery codes somewhere safe. Each one works once if you lose your phone. They won't be shown again.
{{range .Codes}}{{.}}
{{end}}
Your other sessions were logged out.
{{end}} {{end}}