BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.twig 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="box pad">
  2. <p>Please note that if you lose your 2FA key and all of your backup keys,
  3. {{ constant('SITE_NAME') }} staff cannot help you retrieve your account.
  4. Ensure you keep your backup keys in a safe place.</p>
  5. <p>We have generated a secure secret that only we should share. Please
  6. import it into your phone, either by scanning the QR key, or copying
  7. in the Secret Text below it. We recommend using the Authy app which
  8. you can find in the <a href="https://itunes.apple.com/gb/app/authy/id494168017?mt=8">App
  9. Store</a> or
  10. <a href="https://play.google.com/store/apps/details?id=com.authy.authy&hl=en_GB">Play
  11. Store</a>. Other authenticator apps will work too.</p>
  12. </div>
  13. <div class="box box2">
  14. <div class="center pad">
  15. <div>
  16. <img src="{{ qrcode.writeDataUri }}">
  17. <div class="twofa_text">Secret Text: <span>{{ secret }}</span></div>
  18. {% if not valid %}
  19. <p class="warning">Please ensure you have imported the correct secret key
  20. into your authentication app and try again.</p>
  21. {% endif %}
  22. </div>
  23. </div>
  24. </div>
  25. <div class="box pad">
  26. <p><strong>Please enter the Two-Factor Authentication key provided by your
  27. app.</strong></p>
  28. <p>Once you have registered the secret, your authentication app should now
  29. be displaying a code. Please enter it now to confirm everything works.</p>
  30. <p>The clock on your phone must be accurate. Current server time is {{ utc_time }} UTC.</p>
  31. <form method="post">
  32. <label for="2fa"><strong>Authentication Key</strong></label>
  33. &nbsp;&nbsp;&nbsp;<input type="text" size="8" name="2fa" id="2fa"/>
  34. &nbsp;&nbsp;&nbsp;<input type="submit" value="Authenticate!">
  35. </div>