Parcourir la source

setup a 15' expiration delay to captcha challenge

olinox14 il y a 1 an
Parent
commit
31e5340bc5
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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({