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.

twofa.tmpl 942B

123456789101112131415161718192021222324252627
  1. {{template "base/head" .}}
  2. <div class="page-content user signin">
  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 header">
  8. {{.i18n.Tr "twofa"}}
  9. </h3>
  10. <div class="ui attached segment">
  11. {{template "base/alert" .}}
  12. <div class="required inline field">
  13. <label for="passcode">{{.i18n.Tr "passcode"}}</label>
  14. <input id="passcode" name="passcode" type="text" autocomplete="one-time-code" inputmode="numeric" pattern="[0-9]*" autofocus required>
  15. </div>
  16. <div class="inline field">
  17. <label></label>
  18. <button class="ui green button">{{.i18n.Tr "auth.verify"}}</button>
  19. <a href="{{AppSubUrl}}/user/two_factor/scratch">{{.i18n.Tr "auth.use_scratch_code" | Str2html}}</a>
  20. </div>
  21. </div>
  22. </form>
  23. </div>
  24. </div>
  25. </div>
  26. {{template "base/footer" .}}