The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
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.

TwoFactorCheck.cshtml 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @model Teknik.Areas.Users.ViewModels.TwoFactorViewModel
  2. @using Teknik.Utilities
  3. <script>
  4. var confirmAuthCodeURL = '@Url.SubRouteUrl("user", "User.Action", new { action = "ConfirmAuthenticatorCode" })';
  5. </script>
  6. @Scripts.Render("~/bundles/checkAuthCode")
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-md-12">
  10. <div class="text-center">
  11. <h1>Two-factor authentication</h1>
  12. <div class="col-md-4 col-md-offset-4">
  13. <div class="panel panel-default">
  14. <div class="panel-body">
  15. <div class="row">
  16. <div class="col-sm-12 text-center">
  17. <div id="authCheckStatus"></div>
  18. </div>
  19. </div>
  20. <input name="ReturnUrl" id="ReturnUrl" type="hidden" value="@Model.ReturnUrl" />
  21. <input name="RememberMe" id="RememberMe" type="hidden" value="@Model.RememberMe" />
  22. <div class="form-group text-left">
  23. <label for="update_website">Authentication code</label>
  24. <input type="text" class="form-control" id="Code" name="Code" data-val-required="The Authentication Code is required." data-val="true" />
  25. </div>
  26. @if (Model.AllowTrustedDevice)
  27. {
  28. <div class="checkbox">
  29. <label>
  30. <input id="RememberDevice" type="checkbox" value="true" name="RememberDevice" /><input name="RememberDevice" type="hidden" value="false"> Remember Device
  31. </label>
  32. </div>
  33. <small>Set this device as a trusted device. It is not advised to trust a public computer.</small>
  34. <br />
  35. <br />
  36. }
  37. <div class="form-group">
  38. <button class="btn btn-primary btn-block" id="verifyCodeSubmit" type="button" name="verifyCodeSubmit">Verify</button>
  39. </div>
  40. <p class="text-left">Open the two-factor authentication app on your device to view your authentication code and verify your identity.</p>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>