josiasmontag / laravel-recaptchav3

Laravel package for Google's Recaptcha V3
MIT License
188 stars 37 forks source link

Enhancement : Hide badge #1

Open Nuranto opened 5 years ago

Nuranto commented 5 years ago

First of all, thanks for sharing this !

A good enhancement would be to hide the badge, and optionnally, show it when the users starts filling a protected form.

josiasmontag commented 5 years ago

The badge is shown by the grecaptcha.execute() JS call, correct?

Executing it later would be a rather website specific implementation. I don't know if it is possible to find a general implementation for this package. PRs are welcome though.

Nuranto commented 5 years ago

I saw some solutions like : https://stackoverflow.com/questions/53109566/how-do-i-hide-google-recaptcha-v3-from-my-site https://groups.google.com/forum/#!topic/recaptcha/gcIxsA2T3yA

Actually an inline display of it could be nice too... Of course, we should determine if we can legally hide it or not, even if the user is not using forms... Well... When I got some time, I'll try to dig into this....

Nuranto commented 5 years ago

https://stackoverflow.com/questions/50583284/how-do-you-set-the-badge-position-with-recaptcha-v3#answer-52557946