okp4 / ui

🎨 Implementation of OKP4 UI components in React, TypeScript, and SASS.
https://ui.okp4.space/
BSD 3-Clause "New" or "Revised" License
28 stars 2 forks source link

Feat/faucet recaptcha #680

Closed ErikssonJoakim closed 1 year ago

ErikssonJoakim commented 1 year ago

This PR introduces a captcha component and adds it to the faucet. As a first implementation it only has the google recaptcha v2 as possible captcha.

The component comes with a hook that injects the Google captcha api and removes it once the captcha de-mounts.

Seeing as we can have two recaptchas at the same time we cannot render the widget implicitly as it targets the first element with the g-recaptcha class.

The official doc can be found here : https://developers.google.com/recaptcha/docs/display.

codecov[bot] commented 1 year ago

Codecov Report

Merging #680 (a2fd14f) into main (ed10fe6) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #680   +/-   ##
=======================================
  Coverage   98.66%   98.66%           
=======================================
  Files          75       75           
  Lines        1120     1120           
  Branches      166      166           
=======================================
  Hits         1105     1105           
  Misses         14       14           
  Partials        1        1           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

bot-anik commented 1 year ago

:tada: This PR is included in version 5.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: