--- ABOUT HCAPTCHA ---

Hcaptcha offers a higher level of protection and the first 100,000 verifications are free. Before installing hcaptcha, register your website domain and obtain API keys. API keys are the site key and secret key used to identify your website to hcaptcha. The site key will be listed on your hcaptcha dashboard page but the secret key is not. If you delete and lose the secret key hcaptcha canot retrieve it. however, you can generate a new secret key on the hcaptcha website. Log in to the hcaptcha dashboard and select the icon at the upper right of the page. Then select settings. Here you will find a button to generate a new secret key. Store your secret key in a safe, secure place. It cannot be retrieved from hcaptcha.

This mod does not replace or modify TNG_captcha.php. It copies the hcaptcha.php file to the TNG root folder. Then newaccount.php and suggest.php are modified to use hcaptcha instead of Google reCaptcha. The behavior is the same in TNG_captcha when using hcaptcha instead of Google reCaptcha.

API keys for hcaptcha are stored in a protected hcaptcha_config.php file in the TNG root folder. When the mod is uninstalled the hcaptcha_config.php file will remain in the TNG root folder. This allows installing, uninstalling and upgrading the mod with re-entering the site and secret keys.

Information on the hcaptcha pricing structure can be found at Hcaptcha Pricing.
Register your website and obtain site and secret keys at Hcaptcha Sign Up Options


--- INSTALLING THE MOD ---

Upload or copy the zip file contents, hcaptcha cfg file and hcaptcha folder, to the TNG mods folder. Click "OK to install" to expand the Bot Manager mod section and then click install. After the mod is installed there will be a message. If either the site key or secret key is not entered in mod options, a message will display which key is missing. This is normal because the site key and secret key are entered after the mod is installed.


--- EDIT OPTIONS ---

ENTER THE HCAPTCHA SITE KEY:
Enter the site key obtained from hcaptcha.

ENTER THE HCAPTCHA SECRET KEY:
Enter the secret key obtained from hcaptcha.

ENTER THE HCAPTCHA THEME MODE:
Enter either light or dark for the hcaptcha notice background color.


--- UPGRADING THE MOD ---

To upgrade the mod, select uninstall then select delete. Then upload the new version and select install.
You do not need to re-enter the site and secret keys as they were stored in a separate file.


--- REMOVING THE MOD COMPLETELY ---

Select uninstall then select delete. Go to the TNG folder and manually delete the hcapconfig.php file
located in the TNG root folder.