{{define "title"}}Authenticator - {{.Site}}{{end}} {{define "main"}}
Each of these works once, in place of a code. They are not shown again.
{{range .}}{{.}}
{{end}}
{{end}}
{{if .Data.Enrolled}}
This account has an authenticator, and {{.Data.Left}} recovery codes left.
Making new ones stops the old ones working.
This account holds the global admin flag, so it must keep an authenticator. Another admin has to take the flag away first.
{{else}}Removing it signs out every session for this account.
{{end}} {{else}}Type this secret into an authenticator, or give it the URI. There is no QR code: it would be useless in a terminal browser.
{{.Data.Secret}}
{{.Data.URI}}
Then prove it took, which is what enrols it. Enrolling signs out every other session. {{if .Data.Local}} It takes the password as well: a stolen cookie must not be able to put a second factor on this account and lock its owner out. {{else}} This account signs in through an external provider and has no password here, so enrolling rests on this session alone. The address on file is told, and an admin can clear an authenticator you did not enrol. {{end}}
{{end}} {{end}}