The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

TwoFactorCheck.cshtml 2.6KB

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