public void RemoveExternalLogin(string providerName, string providerUserId)
        {
            var m = OpenAuth.DeleteAccount(User.Identity.Name, providerName, providerUserId)
                ? "?m=RemoveLoginSuccess"
                : String.Empty;

            Response.Redirect("~/Account/Manage" + m);
        }
예제 #2
0
 protected void externalLoginsList_ItemDeleting(object sender, ListViewDeleteEventArgs e)
 {
     var providerName = (string)e.Keys["ProviderName"];
     var providerUserId = (string)e.Keys["ProviderUserId"];
     var m = OpenAuth.DeleteAccount(User.Identity.Name, providerName, providerUserId)
         ? "?m=RemoveLoginSuccess"
         : String.Empty;
     Response.Redirect("~/Account/Manage" + m);
 }