From e2b76365d04ed4187fdf1091f498232c99ff99e3 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sat, 9 Apr 2022 13:39:54 +0800 Subject: [PATCH] feat: reset secret to not required --- apps/vue/src/hooks/abp/useValidation.ts | 2 +- .../components/SendAttemptModal.vue | 21 ++- .../components/SubscriptionModal.vue | 38 ++-- ...ueVbenAdminNavigationDefinitionProvider.cs | 9 +- .../LINGYUN/Abp/Webhooks/WebhookManager.cs | 2 +- .../System/AbpStringCryptographyExtensions.cs | 9 +- .../WebhookSubscriptionCreateOrUpdateInput.cs | 1 - .../WebhookSubscriptionAppService.cs | 7 +- .../WebhooksManagement/WebhookSubscription.cs | 6 +- .../WebhookSubscriptionsStore.cs | 2 +- ...agementDbContextModelCreatingExtensions.cs | 3 +- ...t-Field-Secret-To-Not-Required.Designer.cs | 162 ++++++++++++++++++ ...3632_Reset-Field-Secret-To-Not-Required.cs | 47 +++++ ...agementMigrationsDbContextModelSnapshot.cs | 7 +- 14 files changed, 280 insertions(+), 36 deletions(-) create mode 100644 aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Migrations/20220409053632_Reset-Field-Secret-To-Not-Required.Designer.cs create mode 100644 aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Migrations/20220409053632_Reset-Field-Secret-To-Not-Required.cs diff --git a/apps/vue/src/hooks/abp/useValidation.ts b/apps/vue/src/hooks/abp/useValidation.ts index 2cb5fa8a7..ce153854b 100644 --- a/apps/vue/src/hooks/abp/useValidation.ts +++ b/apps/vue/src/hooks/abp/useValidation.ts @@ -151,7 +151,7 @@ export function useValidation() { : L(notNameEnum, field.length); function checkLength(value: string | any[]) { - return checkMaximum ? value.length > field.length : value.length < field.length; + return checkMaximum ? field.length > value.length : value.length > field.length; } return { diff --git a/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue b/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue index f7655a864..c5cde4a72 100644 --- a/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue +++ b/apps/vue/src/views/webhooks/send-attempts/components/SendAttemptModal.vue @@ -16,6 +16,9 @@ > + + + @@ -23,11 +26,14 @@ {{ httpStatusCodeMap[modelRef.responseStatusCode] }} - +