Index.cshtml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @model Winsoft.GOV.XF.WX.Models.IndexViewModel
  2. @{
  3. ViewBag.Title = "管理";
  4. }
  5. <h2>@ViewBag.Title。</h2>
  6. <p class="text-success">@ViewBag.StatusMessage</p>
  7. <div>
  8. <h4>更改你的帐户设置</h4>
  9. <hr />
  10. <dl class="dl-horizontal">
  11. <dt>密码:</dt>
  12. <dd>
  13. [
  14. @if (Model.HasPassword)
  15. {
  16. @Html.ActionLink("更改密码", "ChangePassword")
  17. }
  18. else
  19. {
  20. @Html.ActionLink("创建", "SetPassword")
  21. }
  22. ]
  23. </dd>
  24. <dt>外部登录名:</dt>
  25. <dd>
  26. @Model.Logins.Count [
  27. @Html.ActionLink("管理", "ManageLogins") ]
  28. </dd>
  29. @*
  30. Phone Numbers can used as a second factor of verification in a two-factor authentication system.
  31. See <a href="https://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
  32. for details on setting up this ASP.NET application to support two-factor authentication using SMS.
  33. Uncomment the following block after you have set up two-factor authentication
  34. *@
  35. @*
  36. <dt>电话号码:</dt>
  37. <dd>
  38. @(Model.PhoneNumber ?? "None")
  39. @if (Model.PhoneNumber != null)
  40. {
  41. <text>[&nbsp;&nbsp;@Html.ActionLink("Change", "AddPhoneNumber")&nbsp;&nbsp;]</text>
  42. using (Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
  43. {
  44. @Html.AntiForgeryToken()
  45. <text>[<input type="submit" value="Remove" class="btn-link" />]</text>
  46. }
  47. }
  48. else
  49. {
  50. <text>[&nbsp;&nbsp;@Html.ActionLink("Add", "AddPhoneNumber")&nbsp;&nbsp;]</text>
  51. }
  52. </dd>
  53. *@
  54. <dt>双因素身份验证:</dt>
  55. <dd>
  56. <p>
  57. There are no two-factor authentication providers configured. See <a href="https://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
  58. for details on setting up this ASP.NET application to support two-factor authentication.
  59. </p>
  60. @*@if (Model.TwoFactor)
  61. {
  62. using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
  63. {
  64. @Html.AntiForgeryToken()
  65. <text>已启用
  66. <input type="submit" value="禁用" class="btn btn-link" />
  67. </text>
  68. }
  69. }
  70. else
  71. {
  72. using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
  73. {
  74. @Html.AntiForgeryToken()
  75. <text>已禁用
  76. <input type="submit" value="启用" class="btn btn-link" />
  77. </text>
  78. }
  79. }*@
  80. </dd>
  81. </dl>
  82. </div>