public async Task SendVerificationSms(SendVerificationSmsInputDto input) { var code = RandomHelper.GetRandom(100000, 999999).ToString(); var cacheKey = AbpSession.ToUserIdentifier().ToString(); var cacheItem = new SmsVerificationCodeCacheItem { Code = code }; _cacheManager.GetSmsVerificationCodeCache().Set( cacheKey, cacheItem ); await _smsSender.SendAsync(input.PhoneNumber, L("SmsVerificationMessage", code)); }
public async Task SendVerificationSms(SendVerificationSmsInputDto input) { await ApiClient.PostAsync(GetEndpoint(nameof(SendVerificationSms)), input); }