{% extends "base.html" %} {% block content %}

Two-Factor Authentication

Security Step: Enter the 6-digit code from your authenticator app to complete login.
{{ form.hidden_tag() }}
{{ form.token.label(class="form-label") }}
{{ form.token(class="form-control form-control-lg text-center" + (" is-invalid" if form.token.errors else ""), placeholder="000000", maxlength="6", style="letter-spacing: 0.5em;") }} {% if form.token.errors %}
{% for error in form.token.errors %} {{ error }} {% endfor %}
{% endif %}
Codes refresh every 30 seconds
{{ form.submit(class="btn btn-success btn-lg") }}

Trouble with 2FA?
Common Issues:
  • Code not working? Make sure your device's time is synchronized
  • Lost your phone? Contact support for account recovery
  • App not installed? Download Google Authenticator or Authy
Security Notice: Each code can only be used once and expires after 30 seconds. This prevents replay attacks and ensures your account remains secure.
{% endblock %}