From 0fc45db2ed9ad4827715aebb25603053d0de277f Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 16 Nov 2023 10:47:38 +0100 Subject: [PATCH] fix(ui): reset password form submit checking for token --- frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx index e1309f12b..5c970457c 100644 --- a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx +++ b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx @@ -32,7 +32,7 @@ function ResetPasswordRequest(props: Props) { }; const handleSubmit = (token?: any) => { - if (token === null || token === undefined) return; + if (CAPTCHA_ENABLED && recaptchaRef.current && (token === null || token === undefined)) return; setError(null); props