two_factor_recovery_codes.tmpl 995 B

123456789101112131415161718192021222324252627282930313233343536
  1. {{template "base/head" .}}
  2. <div class="user settings security two-factor">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "user/settings/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "settings.two_factor_recovery_codes_title"}}
  10. </h4>
  11. <div class="ui attached segment">
  12. <p>{{.i18n.Tr "settings.two_factor_recovery_codes_desc" | Safe}}</p>
  13. <ul class="ui list">
  14. {{range .RecoveryCodes}}
  15. <li class="item">
  16. <code>
  17. {{if .IsUsed}}
  18. <del>{{.Code}}</del>
  19. {{else}}
  20. {{.Code}}
  21. {{end}}
  22. </code>
  23. </li>
  24. {{end}}
  25. </ul>
  26. <form class="ui form" method="post">
  27. {{.CSRFTokenHTML}}
  28. <button class="ui blue button">{{.i18n.Tr "settings.two_factor_regenerate_recovery_codes"}}</button>
  29. </form>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. {{template "base/footer" .}}