two_factor_enable.tmpl 1.0 KB

12345678910111213141516171819202122232425262728
  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_enable_title"}}
  10. </h4>
  11. <div class="ui attached segment">
  12. <div>{{.i18n.Tr "settings.two_factor_scan_qr"}}</div>
  13. <img src="{{.QRCode}}" alt="{{.TwoFactorSecret}}">
  14. <p>{{.i18n.Tr "settings.two_factor_or_enter_secret"}} <b>{{.TwoFactorSecret}}</b></p>
  15. <form class="ui form" method="post">
  16. {{.CSRFTokenHTML}}
  17. <div class="required inline field">
  18. <span>{{.i18n.Tr "settings.two_factor_then_enter_passcode"}}</span>
  19. <input class="ui input" name="passcode" autocomplete="off" autofocus required>
  20. </div>
  21. <button class="ui green button">{{.i18n.Tr "settings.two_factor_verify"}}</button>
  22. </form>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. {{template "base/footer" .}}