Bit.Api.Controllers.AccountsController.PostTwoFactorRecover C# (CSharp) Method

PostTwoFactorRecover() private method

private PostTwoFactorRecover ( [ model ) : System.Threading.Tasks.Task
model [
return System.Threading.Tasks.Task
        public async Task PostTwoFactorRecover([FromBody]RecoverTwoFactorRequestModel model)
        {
            if(!await _userService.RecoverTwoFactorAsync(model.Email, model.MasterPasswordHash, model.RecoveryCode))
            {
                await Task.Delay(2000);
                throw new BadRequestException(string.Empty, "Invalid information. Try again.");
            }
        }