public async Task <ActionResult> Disassociate(string loginProvider, string providerKey) { ManageMessageId?message = null; string userId = User.Identity.GetUserId(); if (await UnlinkAccountForUser(userId, loginProvider, providerKey)) { // If you remove a local login, need to delete the login as well if (loginProvider == IdentityConfig.LocalLoginProvider) { await Secrets.Delete(providerKey); } message = ManageMessageId.RemoveLoginSuccess; } return(RedirectToAction("Manage", new { Message = message })); }