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

Flask + 2FA Demo

Setup and Authenticate 2FA

Instructions!
  • Download Google Authenticator on your mobile.
  • Create a new account with setup key method.
  • Provide the required details (name, secret key).
  • Select time-based authentication.
  • Submit the generated key in the form.
{{ form.hidden_tag() }}
{{ form.otp() }}
{{ form.submit() }}
{% endblock %}