This is a very basic implementation of reCAPTCHA v2 as SAP UI5 controls. You should consider this more as an example and rework it to your needs.
Please refer also to the developer guide for reCaptcha provided by Google and the API for SAP UI5.
- Smile and don't panic.
- Go to the Google ReCAPTCHA admin site and create an API key pair.
- Copy the files under
src/controls
to you project. - Optional step: Rename the controls inside the files to something that matches your project id.
- Require/Define either
Recaptcha
orInvisibleRecaptcha
to use in your project. TheBasicRecaptcha
is really just something like an abstract class and shouldn't be used directly. - Create an instance of the Recaptcha object with the pblic API key and any optional parameters. See the file
src/Component.js
for examples. - Test your implementation. And then test some more...