FriendsOfFlarum/recaptcha

Include recaptcha script only in register modal

XakepSDK opened this issue · 2 comments

Extension works only in registration modal, but script loads in every page. That's bad.

It's a SPA, meaning the HEAD is generated once and re-used everywhere.

I guess it could be made so it only adds the reCAPTCHA code to the head when viewing as a guest, aka when there's no user signed in.. there's no point in having the code load when a user has signed in.

Thoughts?