Skip to content

Commit

Permalink
fix(saas): 修改连接字符串时应检查有效性
Browse files Browse the repository at this point in the history
  • Loading branch information
colinin committed Aug 23, 2024
1 parent 0d789b7 commit 5df97aa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ public async virtual Task<ListResultDto<TenantConnectionStringDto>> GetConnectio
[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);
Expand Down

0 comments on commit 5df97aa

Please sign in to comment.