{{define "content"}}{{template "settings-start" .}}{{with .Data}}

Two-factor sign-in

{{if .Codes}}

Your recovery codes

If you lose your phone, each of these signs you in once instead of a code. Save them now (in a password manager, or printed): they aren't shown again.

{{range .Codes}}{{.}}
{{end}}

Done

{{else}}
  1. Open your authenticator app and add an account, by scanning this code: {{with .QR}}

    QR code to add Supermarket to an authenticator app

    {{end}}

    Or type this key: {{.Secret}} (time-based).

  2. Enter the six-digit code the app shows:
    {{with .Problem}}{{end}}

Then you get ten recovery codes, for when you don't have your phone. Cancel

{{end}} {{end}}{{template "settings-end"}}{{end}}