Closed arogachev closed 7 years ago
Don't have any objections. Could be a minor BC break though
What if there are two forms at the same page: login form and signup form. Both have a captcha. In this case it may be identical but still it's two captcha inputs.
@samdark Agree. Better leave it as is in this case.
Currently it's possible to use multiple elements when initializing captcha.
For example, we can have the following HTML:
and initialize jQuery plugin like this:
But what's the point of it? Both images will have the same exact settings and click will generate the same exact requests.
I can't think of a use case when multiple captchas with the same settings are needed at one page.
Moreover, I can't remember the case when at least 2 captchas with different settings are used at one page. But if we anyway need different settings, we can initialize it from different elements:
So I suggest to add an according check in
init
:Then we can get rid of the loop used in
init
: