| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- @model Winsoft.GOV.XF.WX.Models.IndexViewModel
- @{
- ViewBag.Title = "管理";
- }
- <h2>@ViewBag.Title。</h2>
- <p class="text-success">@ViewBag.StatusMessage</p>
- <div>
- <h4>更改你的帐户设置</h4>
- <hr />
- <dl class="dl-horizontal">
- <dt>密码:</dt>
- <dd>
- [
- @if (Model.HasPassword)
- {
- @Html.ActionLink("更改密码", "ChangePassword")
- }
- else
- {
- @Html.ActionLink("创建", "SetPassword")
- }
- ]
- </dd>
- <dt>外部登录名:</dt>
- <dd>
- @Model.Logins.Count [
- @Html.ActionLink("管理", "ManageLogins") ]
- </dd>
- @*
- Phone Numbers can used as a second factor of verification in a two-factor authentication system.
-
- See <a href="https://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
- for details on setting up this ASP.NET application to support two-factor authentication using SMS.
-
- Uncomment the following block after you have set up two-factor authentication
- *@
- @*
- <dt>电话号码:</dt>
- <dd>
- @(Model.PhoneNumber ?? "None")
- @if (Model.PhoneNumber != null)
- {
- <text>[ @Html.ActionLink("Change", "AddPhoneNumber") ]</text>
- using (Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
- {
- @Html.AntiForgeryToken()
- <text>[<input type="submit" value="Remove" class="btn-link" />]</text>
- }
- }
- else
- {
- <text>[ @Html.ActionLink("Add", "AddPhoneNumber") ]</text>
- }
- </dd>
- *@
- <dt>双因素身份验证:</dt>
- <dd>
- <p>
- There are no two-factor authentication providers configured. See <a href="https://go.microsoft.com/fwlink/?LinkId=403804">this article</a>
- for details on setting up this ASP.NET application to support two-factor authentication.
- </p>
- @*@if (Model.TwoFactor)
- {
- using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
- {
- @Html.AntiForgeryToken()
- <text>已启用
- <input type="submit" value="禁用" class="btn btn-link" />
- </text>
- }
- }
- else
- {
- using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
- {
- @Html.AntiForgeryToken()
- <text>已禁用
- <input type="submit" value="启用" class="btn btn-link" />
- </text>
- }
- }*@
- </dd>
- </dl>
- </div>
|