From 20ae2ce5e02539719b971e53222f3e3328ff82a6 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 15 May 2025 15:20:53 +0500 Subject: feat: custom captcha --- src/config.sample.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/config.sample.php') diff --git a/src/config.sample.php b/src/config.sample.php index ed206f6..3d30044 100644 --- a/src/config.sample.php +++ b/src/config.sample.php @@ -65,9 +65,10 @@ define("TWITCH_CLIENT_ID", "AAAAAAAAA"); // Client ID of your Twitch application define("TWITCH_SECRET_KEY", "BBBBBBBBB"); // Secret key of your Twitch application. define("TWITCH_REDIRECT_URI", ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https" : "http") . "://$_SERVER[HTTP_HOST]/account/login/twitch.php"); // Redirect URI of your Twitch application. -// HCAPTCHA +// CAPTCHA define("CAPTCHA_ENABLE", true); // Enable built-in captcha. -define("CAPTCHA_WORDS", ["hello", "apple", "cat"]); // Captcha words. +define("CAPTCHA_SIZE", [580, 220]); // Captcha size. +define("CAPTCHA_FORCE_USERS", false); // Force authorized users to solve captcha. // FOR DEVELOPERS define("CLIENT_REQUIRES_JSON", isset($_SERVER["HTTP_ACCEPT"]) && $_SERVER["HTTP_ACCEPT"] == "application/json"); \ No newline at end of file -- cgit v1.2.3