Browse Source

Merge pull request #995 from colinin/fix-saas

fix(saas): 修改连接字符串时应检查有效性
pull/1010/head
yx lin 1 year ago
committed by GitHub
parent
commit
347f91ec39
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs

2
aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs

@ -213,6 +213,8 @@ public class TenantAppService : AbpSaasAppServiceBase, ITenantAppService
[Authorize(AbpSaasPermissions.Tenants.ManageConnectionStrings)]
public async virtual Task<TenantConnectionStringDto> SetConnectionStringAsync(Guid id, TenantConnectionStringCreateOrUpdate input)
{
await CheckConnectionString(input.Value, input.Name);
var tenant = await TenantRepository.GetAsync(id);
var oldConnectionString = tenant.FindConnectionString(input.Name);

Loading…
Cancel
Save