From 92a1d492c1b80219d47be9afb54a3d4cd1b90a70 Mon Sep 17 00:00:00 2001
From: MDMCK10 <21245760+MDMCK10@users.noreply.github.com>
Date: Mon, 30 Sep 2024 22:42:52 +0200
Subject: [PATCH] Add support for more CAPTCHA providers
---
package.json | 2 +
src/html/index.html | 12 +++-
src/ts/AuthManager.ts | 32 ++++++++--
src/ts/main.ts | 138 +++++++++++++++++++++++++++++++++++++++++-
tsconfig.json | 3 +-
yarn.lock | 10 +++
6 files changed, 185 insertions(+), 12 deletions(-)
diff --git a/package.json b/package.json
index ade1262..3644fdf 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,9 @@
"devDependencies": {
"@hcaptcha/types": "^1.0.3",
"@types/bootstrap": "^5.2.10",
+ "@types/cloudflare-turnstile": "^0.2.2",
"@types/dompurify": "^3.0.5",
+ "@types/grecaptcha": "^3.0.9",
"@types/jest": "^29.5.12",
"buffer": "^5.5.0||^6.0.0",
"jest": "^29.7.0",
diff --git a/src/html/index.html b/src/html/index.html
index a6d9040..b48f1de 100644
--- a/src/html/index.html
+++ b/src/html/index.html
@@ -10,7 +10,7 @@
-
+
@@ -97,6 +97,8 @@