From ae7ef2c6c76947ea12cbb1592152d9c80fd1a8f3 Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Tue, 7 Apr 2026 03:16:18 +0000 Subject: Remove defunct CAPTCHA The hCaptcha integration has been abandoned for a while. It added yet another questionable third-party API (which also set a Cloudflare cookie), and its effectiveness is unclear considering its client-side nature. A custom CAPTCHA implementation (such as PoW challenge) is an interesting prospect, but it'll require proper server-side support. --- webAO/dom/twofactor.ts | 9 --------- webAO/dom/window.ts | 1 - 2 files changed, 10 deletions(-) delete mode 100644 webAO/dom/twofactor.ts (limited to 'webAO/dom') diff --git a/webAO/dom/twofactor.ts b/webAO/dom/twofactor.ts deleted file mode 100644 index 4f5fa81..0000000 --- a/webAO/dom/twofactor.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { client } from "../client"; - -export function hcallback(hcaptcharesponse: string) { - localStorage.setItem("hdid", client.hdid); - client.sender.sendServer(`2T#${hcaptcharesponse}#%`); - location.reload(); -} - -window.hcallback = hcallback; diff --git a/webAO/dom/window.ts b/webAO/dom/window.ts index ac43a0a..6fbbf14 100644 --- a/webAO/dom/window.ts +++ b/webAO/dom/window.ts @@ -55,7 +55,6 @@ declare global { onOOCEnter: (_event: any) => void; kickPlayer: (id: number) => void; banPlayer: (id: number) => void; - hcallback: (_event: any) => void; } } export {}; -- cgit