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.

27 lines
902 B

  1. {{template "base/head" .}}
  2. <div class="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="number" autocomplete="off" 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" .}}