magento / security-package

Magento Security Extensions
Open Software License 3.0
73 stars 69 forks source link

Not able to use captcha multiple times in same page #293

Closed JeffersonTeixeira closed 3 years ago

JeffersonTeixeira commented 3 years ago

Summary (*)

I'm developing a module to allow customer Login/reset password from a popup (modal). The module is available in all pages. I'm able to render the recaptcha normally, but if I'm in a page that already has the recaptcha rendered, it can't have it rendered in modal. The popup content for reset password is loaded by ajax, then I call .applyBindings() (knockoutJs) and $('popup').trigger('contentUpdated') after it is attached in html, and not even this way it shows up. Is there a way to have it working?

Examples (*)

If I'm in create account page (with recaptcha rendered) then I open my modal with another form which requires recaptcha, it isn't rendered in modal.

Proposed solution

Allow using multiple recaptcha in same page

m2-assistant[bot] commented 3 years ago

Hi @JeffersonTeixeira. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


nathanjosiah commented 3 years ago

@magento export issue to Jira project MC as Bug

nathanjosiah commented 3 years ago

@magento export issue to Jira project MC as Bug

nathanjosiah commented 3 years ago

@magento export issue to Jira project MC as Story

github-jira-sync-bot commented 3 years ago

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/MC-42697 is successfully created for this GitHub issue.

nathanjosiah commented 3 years ago

@JeffersonTeixeira Can you please provide a concrete example of code in a gist or something where we could easily reproduce this?

nathanjosiah commented 3 years ago

@JeffersonTeixeira If you can provide an example for us to work with I can probably reopen but for now I'm going to close this.