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/accounts.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/accounts.php') diff --git a/src/accounts.php b/src/accounts.php index 99d1a9c..72c766f 100644 --- a/src/accounts.php +++ b/src/accounts.php @@ -5,11 +5,6 @@ function authorize_user(bool $required = false): bool { session_start(); - if (!isset($_SESSION["captcha_solved"]) && !CLIENT_REQUIRES_JSON) { - header("Location: /captcha.php"); - exit; - } - if (!isset($_COOKIE["secret_key"]) && !isset($_SERVER["HTTP_AUTHORIZATION"])) { if (isset($_SESSION["user_id"])) { session_unset(); -- cgit v1.2.3