recaptcha
parent
f8fc680f3d
commit
e21745125d
|
@ -253,6 +253,7 @@ function Login({ notificationApi }) {
|
|||
]}
|
||||
>
|
||||
<ReCAPTCHA
|
||||
ref={recaptchaValueRef}
|
||||
sitekey={process.env.REACT_APP_RECAPTCHA_SITE_KEY}
|
||||
onChange={(value) => (recaptchaValueRef.current = value)}
|
||||
/>
|
||||
|
@ -345,6 +346,7 @@ function Login({ notificationApi }) {
|
|||
.catch((errStatus) => {
|
||||
showErrorNotification(errStatus);
|
||||
setIsRequesting(false);
|
||||
recaptchaValueRef.current.reset();
|
||||
});
|
||||
})
|
||||
.catch(() => showInputsInvalidNotification(notificationApi, t));
|
||||
|
|
Loading…
Reference in New Issue