| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- {% extends "base.html" %}
- {% block content %}
- <div class="container">
- <div class="row justify-content-center">
- <div class="col-lg-12">
- <div class="jumbotron text-center p-4">
- <h2>Flask + 2FA Demo</h2>
- <h4>Setup and Authenticate 2FA</h4>
- </div>
- </div>
- <div class="col-lg-5">
- <form>
- <div>
- <h5>Instructions!</h5>
- <ul>
- <li>Download <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en&gl=US" target="_blank">Google Authenticator</a> on your mobile.</li>
- <li>Create a new account with <strong>setup key</strong> method.</li>
- <li>Provide the required details (name, secret key).</li>
- <li>Select time-based authentication.</li>
- <li>Submit the generated key in the form.</li>
- </ul>
- </div>
- <div class="form-group">
- <label for="secret">Secret Token</label>
- <input type="text" class="form-control" id="secret" value="{{ secret }}" readonly>
- </div>
- </form>
- </div>
- <div class="col-lg-7">
- <form method="POST">
- {{ form.hidden_tag() }}
- <div class="form-group">
- <label for="otp">Generated OTP</label>
- {{ form.otp() }}
- </div>
- <div class="text-center">
- {{ form.submit() }}
- </div>
- </form>
- </div>
- </div>
- </div>
- {% endblock %}
|