diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-04-07 03:16:18 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-04-18 16:52:23 +0000 |
| commit | ae7ef2c6c76947ea12cbb1592152d9c80fd1a8f3 (patch) | |
| tree | aafbf04224cb5eb8762a11eed3983dfa2e7d795d /webAO/client.ts | |
| parent | 4bd750ca1f3e446f68e0f88fabf0682fd4d61848 (diff) | |
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.
Diffstat (limited to 'webAO/client.ts')
| -rw-r--r-- | webAO/client.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/webAO/client.ts b/webAO/client.ts index ab39ee9..50eb18b 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -136,7 +136,6 @@ class Client extends EventEmitter { musics: any; musics_time: boolean; callwords: string[]; - enableCaptcha: boolean; banned: boolean; hdid: string; resources: any; @@ -186,7 +185,6 @@ class Client extends EventEmitter { } }; - this.enableCaptcha = false; this.banned = false; this.hp = [0, 0]; this.playerID = 1; @@ -258,12 +256,6 @@ class Client extends EventEmitter { */ joinServer() { this.sender.sendServer(`HI#${hdid}#%`); - if (this.enableCaptcha && localStorage.getItem("hdid") !== hdid) { - this.sender.sendServer(localStorage.getItem("hdid")); - document.getElementById("client_secondfactor").style.display = "block"; - document.getElementById("client_charselect").remove(); - document.getElementById("client_ooc").remove(); - } } /** |
