@model Winsoft.GOV.XF.WX.Models.ManageLoginsViewModel @using Microsoft.Owin.Security @{ ViewBag.Title = "管理你的外部登录名"; }

@ViewBag.Title。

@ViewBag.StatusMessage

@{ var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); if (loginProviders.Count() == 0) {

There are no external authentication services configured. See this article for details on setting up this ASP.NET application to support logging in via external services.

} else { if (Model.CurrentLogins.Count > 0) {

已注册的登录名

@foreach (var account in Model.CurrentLogins) { }
@account.LoginProvider @if (ViewBag.ShowRemoveButton) { using (Html.BeginForm("RemoveLogin", "Manage")) { @Html.AntiForgeryToken()
@Html.Hidden("loginProvider", account.LoginProvider) @Html.Hidden("providerKey", account.ProviderKey)
} } else { @:   }
} if (Model.OtherLogins.Count > 0) { using (Html.BeginForm("LinkLogin", "Manage")) { @Html.AntiForgeryToken()

@foreach (AuthenticationDescription p in Model.OtherLogins) { }

} } } }