Преглед на файлове

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({