diff --git a/packages/frontend/src/components/MkSignin.password.vue b/packages/frontend/src/components/MkSignin.password.vue index 5608122a39..b692e341c3 100644 --- a/packages/frontend/src/components/MkSignin.password.vue +++ b/packages/frontend/src/components/MkSignin.password.vue @@ -28,6 +28,7 @@ SPDX-License-Identifier: AGPL-3.0-only + @@ -45,6 +46,7 @@ export type PwResponse = { mCaptchaResponse: string | null; reCaptchaResponse: string | null; turnstileResponse: string | null; + fcResponse: string | null; testcaptchaResponse: string | null; }; }; @@ -77,12 +79,14 @@ const hCaptcha = useTemplateRef('hcaptcha'); const mCaptcha = useTemplateRef('mcaptcha'); const reCaptcha = useTemplateRef('recaptcha'); const turnstile = useTemplateRef('turnstile'); +const fc = useTemplateRef('fc'); const testcaptcha = useTemplateRef('testcaptcha'); const hCaptchaResponse = ref(null); const mCaptchaResponse = ref(null); const reCaptchaResponse = ref(null); const turnstileResponse = ref(null); +const fcResponse = ref(null); const testcaptchaResponse = ref(null); const captchaFailed = computed((): boolean => { @@ -91,6 +95,7 @@ const captchaFailed = computed((): boolean => { (instance.enableMcaptcha && !mCaptchaResponse.value) || (instance.enableRecaptcha && !reCaptchaResponse.value) || (instance.enableTurnstile && !turnstileResponse.value) || + (instance.enableFC && !fcResponse.value) || (instance.enableTestcaptcha && !testcaptchaResponse.value) ); }); @@ -109,6 +114,7 @@ function onSubmit() { mCaptchaResponse: mCaptchaResponse.value, reCaptchaResponse: reCaptchaResponse.value, turnstileResponse: turnstileResponse.value, + fcResponse: fcResponse.value, testcaptchaResponse: testcaptchaResponse.value, }, }); @@ -119,6 +125,7 @@ function resetCaptcha() { mCaptcha.value?.reset(); reCaptcha.value?.reset(); turnstile.value?.reset(); + fc.value?.reset(); testcaptcha.value?.reset(); }