masroorejaz / react-simple-captcha

A very simple and powerful captcha for ReactJS
40 stars 19 forks source link

how i can use two time within same page #20

Closed khushmohammad closed 2 years ago

khushmohammad commented 2 years ago

i am not able to use my component two time within same page

masroorejaz commented 2 years ago

I wrote a work around for you since it's only support one Captcha par Page.

Main/Demo Page captcha_test.zip Changes You have to made in node modules of react-simple-captcha file. You also need to publish it as npm otherwise these changes will be overwrite. react-simple-captcha.zip

Kindly let me know if you still have any further issue.

Thank you.

khushmohammad commented 2 years ago

thanks

Gourishmesta commented 1 year ago

@masroorejaz Why cant we pass a id as props to LoadCanvasTemplate_HTML and LoadCanvasTemplateNoReload_HTML instead of creating a separate method loadCaptchaEnginge2, LoadCanvasTemplate2 etc. if we pass a different id we can use as many captcha engine on single page

will this be possible?

Sorry if i sound crazy!!

Thank you