{{define "2fa_setup.html"}} {{template "head"}} 2FA Setup - Maps Scraper {{template "navbar" .}}
{{if .Success}}
{{.Success}}
{{end}} {{if .Error}}
{{.Error}}
{{end}} {{if .TOTPEnabled}}

Your account is protected with two-factor authentication.

Disable 2FA

Warning: This will make your account less secure.

{{else if eq .Step "backup"}}

Important: These codes can be used if you lose access to your authenticator. Each code works only once.

{{range .BackupCodes}} {{.}} {{end}}
You will not see these codes again!
{{else if eq .Step "qr"}}
  1. Install an authenticator app (Google Authenticator, Authy, 1Password)
  2. Scan the QR code below
  3. Enter the 6-digit code to verify
QR Code
{{.Secret}}
{{else}}

To enable two-factor authentication, please confirm your password first.

{{end}}

← Back to Dashboard

{{end}}