mfa.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="container">
  4. <div class="row justify-content-center">
  5. <div class="col-lg-12">
  6. <div class="jumbotron text-center p-4">
  7. <h2>artFi Security Check!</h2>
  8. <h4>Setup or Authenticate 2-Factor Authentication</h4>
  9. </div>
  10. </div>
  11. <div class="col-lg-5">
  12. <form method="POST">
  13. {{ form2.hidden_tag() }}
  14. <div>
  15. <h5>Instructions:</h5>
  16. <ul>
  17. <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>
  18. <li>Create a new account with <strong>setup key</strong> method.</li>
  19. <li>Provide the required details (name, secret key).</li>
  20. <li>Select time-based authentication.</li>
  21. <li>Submit the generated key in the form.</li>
  22. <li>The Secret token has been sent to your registered email!</li>
  23. <li>If you want to reset, press reset and check your email</li>
  24. </ul>
  25. </div>
  26. <div class="form-group">
  27. {{ form2.send_key() }}
  28. {{ form2.reset_key() }}
  29. <!--<label for="secret">Secret Token</label>
  30. <input type="text" class="form-control" id="secret" value="{{ secret }}" readonly>-->
  31. </div>
  32. </form>
  33. </div>
  34. <br>
  35. <div class="col-lg-5 col-md-7 mx-auto my-auto">
  36. <div class="card">
  37. <div class="card-body px-lg-5 py-lg-5 text-center">
  38. <label for="otp"><h2 class="mfa-word">Generated OTP</h2></label>
  39. <form method="POST">
  40. {{ form.hidden_tag() }}
  41. <div class="row mb-4">
  42. {{ form.otp(class="col-lg-6 col-md-6 col-6 ps-0 ps-md-6 mfa-input-box", placeholder="Enter the 6-digit code") }}
  43. </div>
  44. <div class="text-center">
  45. {{ form.submit(class="btn mfa-btn") }}
  46. </div>
  47. </form>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. {% endblock %}