FriendsOfFlarum / recaptcha

Increase your forum's security with Google reCAPTCHA
https://discuss.flarum.org/d/18399
MIT License
13 stars 11 forks source link

Include recaptcha script only in register modal #2

Closed XakepSDK closed 5 years ago

XakepSDK commented 5 years ago

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

luceos commented 5 years ago

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

dsevillamartin commented 5 years ago

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?