diff --git a/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs b/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs index 680622be9..b5564d8fa 100644 --- a/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs +++ b/aspnet-core/modules/saas/LINGYUN.Abp.Saas.Application/LINGYUN/Abp/Saas/Tenants/TenantAppService.cs @@ -213,6 +213,8 @@ public async virtual Task> GetConnectio [Authorize(AbpSaasPermissions.Tenants.ManageConnectionStrings)] public async virtual Task SetConnectionStringAsync(Guid id, TenantConnectionStringCreateOrUpdate input) { + await CheckConnectionString(input.Value, input.Name); + var tenant = await TenantRepository.GetAsync(id); var oldConnectionString = tenant.FindConnectionString(input.Name);