{% extends "base.html" %} {% block title %}Setup 2FA - Finance Tracker{% endblock %} {% block content %}

🔐 Setup Two-Factor Authentication

Step 1: Scan QR Code

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

{% if qr_code %}
2FA QR Code
{% else %}

❌ QR code generation failed. Please use manual entry below.

{% endif %}
Can't scan? Enter manually

Secret Key:

{{ secret }}

Enter this key manually in your authenticator app under "Enter a setup key" or "Manual entry"

Step 2: Verify Code

Enter the 6-digit code from your authenticator app to complete setup

Cancel

💡 Important: Save your secret key in a secure location. You'll need it if you lose access to your authenticator app.

{% endblock %}