Skip to content

Commit 0442e98

Browse files
fix(app_launch): revert recaptcha
1 parent 5efeabc commit 0442e98

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

components/Recaptcha.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
site_key: { type: String, required: true },
2020
})
2121
22+
onMounted(() => {
23+
if (import.meta.client) {
24+
if (
25+
process.env.NODE_ENV !== "production" ||
26+
!infra_store.app_mode !== appMode.appMode.CLOUD
27+
) {
28+
infra_store.$patch({ is_captcha_validated: true })
29+
}
30+
}
31+
})
2232
async function submit_recaptcha(token) {
2333
try {
2434
const response = await $fetch.raw(

stores/infra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const use_infra_store = defineStore("infra", {
66
state: () => ({
77
app_mode: getAppMode(),
88
ID: useStorage("ID", ""),
9-
is_captcha_validated: getCaptchaState(),
9+
is_captcha_validated: false,
1010
status: Status.NOT_CREATED,
1111
}),
1212
getters: {

utils/captcha_state.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)