No Description

mfa_setup.html 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {% extends "layouts/static-default.html" %}
  2. {% block title %} MFA Setup {% endblock title %}
  3. {% block stylesheets %}
  4. <link rel="stylesheet" href="/static/assets/css/bootstrap.min.css">
  5. <link rel="stylesheet" href="/static/assets/css/atlantis.css">
  6. <link rel="stylesheet" href="/static/assets/css/login.css">
  7. {% endblock stylesheets %}
  8. {% block content %}
  9. <div class="content-full">
  10. <div class="wrapper row">
  11. <div class="radial-bg-primary col-xs-12 col-md-8">
  12. <div class="d-flex flex-column justify-content-center align-items-center" style="height: 100%;">
  13. <h1 class="text-white mb-3">Setup MFA</h1>
  14. <img src="data:image/png;base64,{{ img_data }}">
  15. <p class="text-white mb-3">{{ otp_setup_key }}</p>
  16. </div>
  17. <span class="text-white text-center mt-4">{{ login_banner|replace('\n', '<br>')|safe }}</span>
  18. </div>
  19. <div class=" col-xs-12 col-md-4">
  20. <div class="d-flex flex-column justify-content-center align-items-center" style="height: 100%;">
  21. <h3 class="login__form_title">Your organisation requires to setup MFA</h3>
  22. <p>Scan the QR code with your authenticator app and enter the token and your password.</p>
  23. <form method="POST" action="">
  24. <div class="col-md-12 col-lg-12 col-sm-12">
  25. <div class="form-row ml-2">
  26. <div class="form-group col-12">
  27. {{ form.hidden_tag() }}
  28. {{ form.mfa_secret(size=32, class="hidden", style="display:None;") }}
  29. <label for="token">Password</label>
  30. {{ form.user_password(class="form-control") }}
  31. <label for="token">Token</label>
  32. {{ form.token(size=32, class="form-control") }}
  33. </div>
  34. </div>
  35. <div class="form-row ml-2">
  36. <div class="form-group col-6">
  37. <button type="submit" class="btn btn-primary">Submit</button>
  38. </div>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. {% endblock content %}
  47. {% block javascripts %}
  48. {% endblock javascripts %}