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.

LoginWith2fa.cshtml 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @model LoginWith2faViewModel
  2. <div class="container">
  3. <div class="row">
  4. <div class="col-md-12">
  5. <div class="row">
  6. <div class="col-md-8 col-md-offset-2 text-center">
  7. <h1>Two-factor authentication</h1>
  8. <hr />
  9. <p>Your login is protected with an authenticator app. Enter your authenticator code below.</p>
  10. </div>
  11. </div>
  12. <div class="row">
  13. <div class="col-md-4 col-md-offset-4">
  14. <form method="post" asp-route-returnUrl="@ViewData["ReturnUrl"]">
  15. <input asp-for="RememberMe" type="hidden" />
  16. <div asp-validation-summary="All" class="text-danger"></div>
  17. <div class="form-group">
  18. <label asp-for="TwoFactorCode"></label>
  19. <input asp-for="TwoFactorCode" class="form-control" autocomplete="off" />
  20. </div>
  21. <div class="form-group">
  22. <div class="abc-checkbox">
  23. <input asp-for="RememberMachine" />
  24. <label asp-for="RememberMachine">@Html.DisplayNameFor(m => m.RememberMachine)</label>
  25. </div>
  26. </div>
  27. <div class="form-group pull-right">
  28. <button type="submit" class="btn btn-default">Log in</button>
  29. </div>
  30. </form>
  31. </div>
  32. </div>
  33. <br />
  34. <div class="row">
  35. <div class="col-md-8 col-md-offset-2 text-center">
  36. <p>
  37. Don't have access to your authenticator device? You can
  38. <a asp-action="LoginWithRecoveryCode" asp-route-returnUrl="@ViewData["ReturnUrl"]">log in with a recovery code</a>.
  39. </p>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>