|
<< Click to Display Table of Contents >> Navigation: Telegram > 2022 > 11 > 13 > Telegram_2022-11-13T15 |
2022-11-13T15:05:01
IWRecapcha use is very simple.
Once you have signed up for an API key pair with google, you just need to set SecretKey and SiteKey for your site in the IWReCaptcha component.
2022-11-13T15:06:16
then you need to use the associated events:
OnExpired, OnSuccess and OnValidationError.
OnSuccess will possibly allow the user to gain access to protected parts of your application. OnExpired and OnValidationError can possibly just show an error message to the end user
2022-11-13T15:13:14
Please notice that you will need OpenSSL DLLs along with your application because the communication between the application and Google API is done using HTTPS, which requires OpenSSL encryption
2022-11-13T15:57:38
You can also just refresh the form after a recaptcha error, something like:
procedure TIWForm1.IWReCaptcha1ValidationError(Sender: TObject; const AResponse: string);
begin
Self.AsyncReload;
end;