two_factor_recovery_code.tmpl 950 B

1234567891011121314151617181920212223242526272829
  1. {{template "base/head" .}}
  2. <div class="user signin two-factor">
  3. <div class="ui middle very relaxed page grid">
  4. <div class="column">
  5. <form class="ui form" action="{{.Link}}" method="post">
  6. {{.CSRFTokenHTML}}
  7. <h3 class="ui top attached center header">
  8. {{.i18n.Tr "auth.login_two_factor_recovery"}}
  9. </h3>
  10. <div class="ui attached segment">
  11. {{template "base/alert" .}}
  12. <div class="required field">
  13. <label for="recovery_code">{{.i18n.Tr "auth.login_two_factor_recovery_code"}}</label>
  14. <div class="ui fluid input">
  15. <input id="recovery_code" name="recovery_code" autofocus required>
  16. </div>
  17. </div>
  18. <button class="ui fluid green button">{{.i18n.Tr "settings.two_factor_verify"}}</button>
  19. </div>
  20. <p>
  21. <a href="{{AppSubURL}}/user/login/two_factor">{{.i18n.Tr "auth.login_two_factor_enter_passcode"}}</a>
  22. </p>
  23. </form>
  24. </div>
  25. </div>
  26. </div>
  27. {{template "base/footer" .}}