Skip to content

Commit 5ddf4c1

Browse files
fix(recaptcha): test hardcoded key
1 parent 0615560 commit 5ddf4c1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

components/Launcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
align="center"
99
>
1010
<h4 class="pb-3">Please complete the recaptcha to launch the app</h4>
11-
<Recaptcha />
11+
<Recaptcha site_key="6Lce72wgAAAAAOXrHyDxRQBhk6NDTD80MrXOlgbC" />
1212
</v-col>
1313
<v-col
1414
v-else-if="!cloud_store.is_running && cloud_store.is_connexion_launched"

components/Recaptcha.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ClientOnly>
33
<vue-recaptcha
44
ref="recaptcha"
5-
:sitekey="6Lce72wgAAAAAOXrHyDxRQBhk6NDTD80MrXOlgbC"
5+
sitekey="6Lce72wgAAAAAOXrHyDxRQBhk6NDTD80MrXOlgbC"
66
:loadRecaptchaScript="true"
77
@expired="is_captcha_validated = false"
88
@verify="submit_recaptcha"
@@ -18,7 +18,12 @@
1818
const cloud_store = use_cloud_store()
1919
const { is_captcha_validated } = storeToRefs(cloud_store)
2020
21-
const site_key = useRuntimeConfig().public.RECAPTCHA_SITE_KEY
21+
const props = defineProps({
22+
site_key: { type: String, required: true },
23+
})
24+
const { site_key } = props
25+
26+
// const site_key = useRuntimeConfig().public.RECAPTCHA_SITE_KEY
2227
console.log("site_key", site_key)
2328
2429
onMounted(() => {

0 commit comments

Comments
 (0)