{# 2FA enrollment — TOTP authenticator setup + email OTP + recovery codes. Contract: ~/.claude/skills/ux-architect/components/auth-2fa.md (UX-077, 2/3) #} {% extends "site/site_base.html" %} {% from 'macros/auth_page_wrapper.html' import auth_page_card %} {% block title %}Set Up Two-Factor Authentication - {{ product_name }}{% endblock %} {% block body_class %}dz-auth-page{% endblock %} {% block body %} {# v0.62 CSS refactor: inline Tailwind → semantic .dz-auth-* family. #} {% call auth_page_card("Set Up 2FA", product_name) %} {# The macro renders #dz-auth-error. Success alert is unique to this flow, so we add it inline. #} {# ─── TOTP (Authenticator App) ─────────────────────────────────────── #}

Authenticator App

Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)


{# ─── Email OTP ────────────────────────────────────────────────────── #}

Email Verification

Receive a one-time code via email when you sign in.

{# ─── Recovery Codes ─────────────────────────────────────────────── #} Back to App {% endcall %} {% endblock %} {% block scripts_extra %} {% endblock %}