diff --git a/resources/js/components/pages/auth/Login.vue b/resources/js/components/pages/auth/Login.vue index a1966ca..92a8fee 100644 --- a/resources/js/components/pages/auth/Login.vue +++ b/resources/js/components/pages/auth/Login.vue @@ -56,7 +56,9 @@ Forgot your password? - Sign in + + Sign in + @@ -112,6 +114,8 @@ const onCaptchaExpired = () => { const loadCaptchaScript = async () => { if (!hasCaptcha) { + isCaptchaBadgeVisible.value = true; + return; } if (!document.getElementById('recaptcha-script')) { @@ -214,6 +218,8 @@ const resendVerification = async () => { checkVerified(); if (appStore.loggedIn) { redirectToCollections(); + } else { + loadCaptchaScript(); } })(); diff --git a/resources/js/components/pages/auth/Register.vue b/resources/js/components/pages/auth/Register.vue index 30fffc8..bed4e12 100644 --- a/resources/js/components/pages/auth/Register.vue +++ b/resources/js/components/pages/auth/Register.vue @@ -50,7 +50,9 @@ - Register + + Register + @@ -114,7 +116,11 @@ const onCaptchaExpired = () => { }; const loadCaptchaScript = async () => { - if (!hasCaptcha) return; + if (!hasCaptcha) { + isCaptchaBadgeVisible.value = true; + + return; + } if (!document.getElementById('recaptcha-script')) { const script = document.createElement('script'); @@ -165,6 +171,8 @@ const register = async (recaptcha?: string) => { (async () => { if (appStore.loggedIn) { redirectToLogin(); + } else { + loadCaptchaScript(); } })(); diff --git a/resources/js/components/pages/auth/RequestResetPassword.vue b/resources/js/components/pages/auth/RequestResetPassword.vue index 5f7e9c3..f5bcec2 100644 --- a/resources/js/components/pages/auth/RequestResetPassword.vue +++ b/resources/js/components/pages/auth/RequestResetPassword.vue @@ -42,7 +42,9 @@ - Reset Password + + Reset Password + @@ -94,6 +96,8 @@ const onCaptchaExpired = () => { const loadCaptchaScript = async () => { if (!hasCaptcha) { + isCaptchaBadgeVisible.value = true; + return; } if (!document.getElementById('recaptcha-script')) { @@ -136,6 +140,8 @@ const requestReset = async (recaptcha?: string) => { (async () => { if (appStore.loggedIn) { redirectToCollections(); + } else { + loadCaptchaScript(); } })();