소스 검색

setup a 15' expiration delay to captcha challenge

olinox14 1 년 전
부모
커밋
31e5340bc5
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      components/AltchaValidation.client.vue

+ 4 - 0
components/AltchaValidation.client.vue

@@ -3,6 +3,7 @@
     v-show="widget !== null"
     ref="widget"
     :challengeurl="runtimeConfig.public.challengeUrl"
+    :expire="expire"
     debug
   />
 </template>
@@ -16,6 +17,9 @@ import type { PropType } from '@vue/runtime-core'
 const runtimeConfig = useRuntimeConfig()
 const appStore = useAppStore()
 
+// Setup a 15min expiration date for the payload
+const expire: number = 15 * 60 * 1000
+
 const widget: Ref<HTMLElement | null> = ref(null)
 
 defineProps({