diff --git a/frontend/app/components/ForgotPassword/CreatePassword.tsx b/frontend/app/components/ForgotPassword/CreatePassword.tsx index be3571a0f..2c8706ade 100644 --- a/frontend/app/components/ForgotPassword/CreatePassword.tsx +++ b/frontend/app/components/ForgotPassword/CreatePassword.tsx @@ -32,7 +32,7 @@ function CreatePassword(props: Props & WithCaptchaProps) { const { submitWithCaptcha, isVerifyingCaptcha, resetCaptcha } = props; const handleSubmit = (token?: string) => { - if (!validatePassword(password) || !token) { + if (!validatePassword(password)) { return; } diff --git a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx index 59210ef53..73099f31b 100644 --- a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx +++ b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx @@ -43,8 +43,6 @@ function ResetPasswordRequest(props: Props & WithCaptchaProps) { }; const handleSubmit = (token?: string) => { - if (!token) return; - setError(null); requestResetPassword({ email: email.trim(), 'g-recaptcha-response': token }) .catch((err: any) => {