public async Task <ActionResult> ResendCode([FromBody][Required] ContactContract contract) { if (m_logger.IsEnabled(LogLevel.Information)) { m_logger.LogInformation(GetMethodCalledLoggingString(null, contract)); } var user = await m_identityUserManager.GetUserByIdAsync(contract.UserId); if (contract.ContactType == ContactTypeEnum.Email) { await m_identityUserManager.ResendConfirmCodeEmailAsync(user); } else if (contract.ContactType == ContactTypeEnum.Phone) { await m_identityUserManager.ResendConfirmCodePhoneNumberAsync(user); } return(Json(true)); }
public async Task <bool> ResendCodeAsync(ContactContract contract) { var fullPath = $"{BasePath}resendcode"; return(await m_authorizationServiceHttpClient.SendRequestAsync <bool>(HttpMethod.Post, fullPath, contract)); }