primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.63k stars 4.63k forks source link

Captcha component should allow to use google recaptcha v3 #11210

Open grenobnik opened 2 years ago

grenobnik commented 2 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior

<p-captcha is based on Google Recaptcha v2

Expected behavior

Allow Google Recaptcha v3 option

What is the motivation / use case for changing the behavior?

Google Recaptcha v3 seems to be a more modern approach to protect against spam.

iuribezerra commented 2 years ago

I was reading the documentation and I don't know if this feature would make sense for the front component. Google's recaptcha v3 documentation is divided into two steps: the first in the frontend using the site key and the second in the API where it uses the secret to check the user's score.

grenobnik commented 2 years ago

Well, obviously, version 3 is based on backend communication and there is no html to inject, therefore this version cannot be used as a frontend standalone component. However, Primefaces may propose a recaptcha service that we, consumers of primeng, can inject into an angular component in order to validate a form entry. Sure, there are libraries that propose this functionality already, but for me would be preferable to not depend on one more library once I already use primeng.

mertsincan commented 2 years ago

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

grenobnik commented 2 years ago

this should be re-opened, unless PrimeFaces make a statement that this feature is not aligned with their own policies. Thanks a lot for your understanding!

avmesquita commented 1 year ago

Was captcha component removed from primeng?