Index.cshtml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @model IndexViewModel
  2. @{
  3. ViewData["Title"] = "Manage your account";
  4. }
  5. <h2>@ViewData["Title"].</h2>
  6. <p class="text-success">@ViewData["StatusMessage"]</p>
  7. <div>
  8. <h4>Change your account settings</h4>
  9. <hr />
  10. <dl class="dl-horizontal">
  11. <dt>Password:</dt>
  12. <dd>
  13. @if (Model.HasPassword)
  14. {
  15. <a asp-controller="Manage" asp-action="ChangePassword" class="btn-bracketed">Change</a>
  16. }
  17. else
  18. {
  19. <a asp-controller="Manage" asp-action="SetPassword" class="btn-bracketed">Create</a>
  20. }
  21. </dd>
  22. <dt>External Logins:</dt>
  23. <dd>
  24. @Model.Logins.Count <a asp-controller="Manage" asp-action="ManageLogins" class="btn-bracketed">Manage</a>
  25. </dd>
  26. <dt>Phone Number:</dt>
  27. <dd>
  28. <p>
  29. Phone Numbers can be used as a second factor of verification in two-factor authentication.
  30. See <a href="https://go.microsoft.com/fwlink/?LinkID=532713">this article</a>
  31. for details on setting up this ASP.NET application to support two-factor authentication using SMS.
  32. </p>
  33. @*@(Model.PhoneNumber ?? "None")
  34. @if (Model.PhoneNumber != null)
  35. {
  36. <br />
  37. <a asp-controller="Manage" asp-action="AddPhoneNumber" class="btn-bracketed">Change</a>
  38. <form asp-controller="Manage" asp-action="RemovePhoneNumber" method="post">
  39. [<button type="submit" class="btn-link">Remove</button>]
  40. </form>
  41. }
  42. else
  43. {
  44. <a asp-controller="Manage" asp-action="AddPhoneNumber" class="btn-bracketed">Add</a>
  45. }*@
  46. </dd>
  47. <dt>Two-Factor Authentication:</dt>
  48. <dd>
  49. <p>
  50. There are no two-factor authentication providers configured. See <a href="https://go.microsoft.com/fwlink/?LinkID=532713">this article</a>
  51. for setting up this application to support two-factor authentication.
  52. </p>
  53. @*@if (Model.TwoFactor)
  54. {
  55. <form asp-controller="Manage" asp-action="DisableTwoFactorAuthentication" method="post" class="form-horizontal">
  56. Enabled <button type="submit" class="btn-link btn-bracketed">Disable</button>
  57. </form>
  58. }
  59. else
  60. {
  61. <form asp-controller="Manage" asp-action="EnableTwoFactorAuthentication" method="post" class="form-horizontal">
  62. <button type="submit" class="btn-link btn-bracketed">Enable</button> Disabled
  63. </form>
  64. }*@
  65. </dd>
  66. </dl>
  67. </div>