mCaptcha / glue

glue code to setup mCaptcha on your website
7 stars 7 forks source link

Adding Option to Reset CAPTCHA via Code #74

Open Paramesh98 opened 5 months ago

Paramesh98 commented 5 months ago

Issue description There should be an option to reset the mCaptcha from the codebase.

Problem Within our project, we have integrated mCaptcha as a security measure before submitting forms. However, upon form submission, while all input values reset successfully using the useState hook, the mCaptcha checkbox remains checked. This issue arises because the mCaptcha checkbox resides within an iframe, and due to security restrictions, we cannot directly manipulate its state from our codebase, especially considering it has a different origin.

Version: next - "13.4.0", react - "18.2.0", react-dom - "18.2.0", @mcaptcha/react-glue - "0.1.0-rc3"

Expected Behaviour: The mCaptcha should be resettable from the codebase.