Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

reset captcha token on error

Alaister Young7ffd4a9f08f6
diff --git a/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx b/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
index 63731b92854..56396e8844c 100644
--- a/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
+++ b/studio/components/interfaces/SignIn/ForgotPasswordForm.tsx
@@ -45,6 +45,7 @@ const ForgotPasswordForm = () => {
await router.push('/sign-in')
} else {
+ setCaptchaToken(null)
captchaRef.current?.resetCaptcha()
ui.setNotification({
diff --git a/studio/components/interfaces/SignIn/SignInForm.tsx b/studio/components/interfaces/SignIn/SignInForm.tsx
index 0c4567f9f59..c454c79b5b2 100644
--- a/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -54,6 +54,7 @@ const SignInForm = () => {
await router.push(returnTo ?? '/projects')
} else {
+ setCaptchaToken(null)
captchaRef.current?.resetCaptcha()
ui.setNotification({
diff --git a/studio/components/interfaces/SignIn/SignUpForm.tsx b/studio/components/interfaces/SignIn/SignUpForm.tsx
index a3ca95be94f..8d22778b853 100644
--- a/studio/components/interfaces/SignIn/SignUpForm.tsx
+++ b/studio/components/interfaces/SignIn/SignUpForm.tsx
@@ -51,6 +51,7 @@ const SignUpForm = () => {
await router.push('/sign-in')
} else {
+ setCaptchaToken(null)
captchaRef.current?.resetCaptcha()
ui.setNotification({