From 90b6244b2fecf47f02d626de957144e2a31f52b0 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 28 Apr 2020 10:26:30 -0500 Subject: [PATCH] Refresh captcha every 5 minutes --- .../features/landing_page/components/registration_form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/gabsocial/features/landing_page/components/registration_form.js b/app/gabsocial/features/landing_page/components/registration_form.js index 6080b06d2..c249a4a48 100644 --- a/app/gabsocial/features/landing_page/components/registration_form.js +++ b/app/gabsocial/features/landing_page/components/registration_form.js @@ -59,6 +59,7 @@ class RegistrationForm extends ImmutablePureComponent { captcha_answer_data: captcha.get('answer_data'), }); }).catch(error => console.error(error)); + setTimeout(this.fetchCaptcha, 5*60*100); // Captcha invalidates after 5 minutes } getCaptchaElem = () => {