Skip to content

Commit ef79af9

Browse files
fix(recaptcha): test with prop site_key
1 parent 370832a commit ef79af9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/Launcher.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h4 class="pb-3">
66
Please complete the recaptcha to launch the app
77
</h4>
8-
<vue-recaptcha ref="recaptcha" :sitekey="useRuntimeConfig().public.RECAPTCHA_SITE_KEY" :loadRecaptchaScript="true"
8+
<vue-recaptcha ref="recaptcha" :sitekey="site_key" :loadRecaptchaScript="true"
99
@expired="is_captcha_validated = false" @verify="submit_recaptcha" align-self="center" />
1010
</v-col>
1111
<v-col v-else-if="!cloud_store.is_running && !cloud_store.is_connexion_launched">
@@ -22,6 +22,10 @@ const websocket_store = use_websocket_store()
2222
const cloud_store = use_cloud_store()
2323
const { is_captcha_validated } = storeToRefs(cloud_store)
2424
25+
const props = defineProps({
26+
site_key: { type: String, required: true }
27+
})
28+
2529
watch(is_captcha_validated, async (value) => {
2630
if (value === true && process.client) {
2731
await cloud_store.create_connexion()

0 commit comments

Comments
 (0)