Skip to content

Commit f0f52d8

Browse files
fix(recaptcha): test
1 parent c806aa7 commit f0f52d8

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

components/Launcher.vue

Lines changed: 6 additions & 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 /> -->
1212
</v-col>
1313
<v-col
1414
v-else-if="!cloud_store.is_running && cloud_store.is_connexion_launched"
@@ -20,6 +20,7 @@
2020
</template>
2121

2222
<script setup>
23+
import { VueRecaptcha } from "vue-recaptcha"
2324
const websocket_store = use_websocket_store()
2425
const cloud_store = use_cloud_store()
2526
const { is_captcha_validated } = storeToRefs(cloud_store)
@@ -30,4 +31,8 @@
3031
await websocket_store.ws_connect()
3132
}
3233
})
34+
35+
onMounted(() => {
36+
console.log("onMounted", useRuntimeConfig())
37+
})
3338
</script>

components/Recaptcha.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<template>
2-
<vue-recaptcha
3-
ref="recaptcha"
4-
:sitekey="site_key"
5-
:loadRecaptchaScript="true"
6-
@expired="is_captcha_validated = false"
7-
@verify="submit_recaptcha"
8-
align-self="center"
9-
/>
2+
<ClientOnly>
3+
<vue-recaptcha
4+
ref="recaptcha"
5+
:sitekey="site_key"
6+
:loadRecaptchaScript="true"
7+
@expired="is_captcha_validated = false"
8+
@verify="submit_recaptcha"
9+
align-self="center"
10+
/>
11+
</ClientOnly>
1012
</template>
1113

1214
<script setup>

0 commit comments

Comments
 (0)