Browse Source
Merge pull request #995 from colinin/fix-saas
fix(saas): 修改连接字符串时应检查有效性
pull/1010/head
yx lin
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
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); |
|
|
|
|