react-client-captcha icon indicating copy to clipboard operation
react-client-captcha copied to clipboard

Could we have a prop to refresh captcha without needing to trigger retry?

Open Daniel-Yonkov opened this issue 5 years ago • 5 comments

This feature will be suitable after for submission, if the data validation on the backend side is not correct. I.E. Login form submission, where the captcha maches but the credentials do not

Daniel-Yonkov avatar Aug 26 '19 11:08 Daniel-Yonkov

I had the same requirement, so did a workaround by adding a key to the component which is changed after every form submit. This forces the component to re-render

lavin-ds avatar Oct 17 '19 09:10 lavin-ds

I had the same requirement, so did a workaround by adding a key to the component which is changed after every form submit. This forces the component to re-render

Hmm, nice idea, will give it a try, maybe updating the documentation with this workaround till feature is deployed? @majid-amiri

Daniel-Yonkov avatar Oct 17 '19 16:10 Daniel-Yonkov

I had the same requirement, so did a workaround by adding a key to the component which is changed after every form submit. This forces the component to re-render

Hmm, nice idea, will give it a try, maybe updating the documentation with this workaround till feature is deployed? @majid-amiri

Of course. Actually I'm going to add a separate props for manual retry functionality. Thanks for your comments.

majid-amiri avatar Oct 21 '19 16:10 majid-amiri

@majid-amiri - Any progress on this?

Daniel-Yonkov avatar Nov 03 '21 12:11 Daniel-Yonkov

I had the same requirement, so did a workaround by adding a key to the component which is changed after every form submit. This forces the component to re-render

can u please elaborate with an example code?

ajmal-n avatar Oct 11 '22 12:10 ajmal-n