Refresh captcha every 5 minutes

This commit is contained in:
Alex Gleason 2020-04-28 10:26:30 -05:00
parent 08e6543dc3
commit 90b6244b2f
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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 = () => {