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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @model Teknik.Areas.Users.ViewModels.LoginViewModel
  2. @using Teknik.Helpers
  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. <form role="form" id="twoFactorCheckForm" action="##" method="post" accept-charset="UTF-8">
  21. <input name="returnUrl" id="returnUrl" type="hidden" value="@Model.ReturnUrl" />
  22. <input name="rememberMe" id="rememberMe" type="hidden" value="@Model.RememberMe" />
  23. <div class="form-group text-left">
  24. <label for="update_website">Authentication code</label>
  25. <input type="text" class="form-control" id="code" name="code" data-val-required="The Authentication Code is required." data-val="true" />
  26. </div>
  27. <div class="form-group">
  28. <button class="btn btn-primary btn-block" id="verifyCodeSubmit" type="button" name="verifyCodeSubmit">Verify</button>
  29. </div>
  30. </form>
  31. <p class="text-left">Open the two-factor authentication app on your device to view your authentication code and verify your identity.</p>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>