summaryrefslogtreecommitdiff
path: root/src/accounts.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-15 15:20:53 +0500
committerilotterytea <iltsu@alright.party>2025-05-15 15:20:53 +0500
commit20ae2ce5e02539719b971e53222f3e3328ff82a6 (patch)
tree1ff0014bf73d73c2f42819a45d50d3a04c53d680 /src/accounts.php
parenta3522672930578959980e39b7041b120c13cd6cf (diff)
feat: custom captcha
Diffstat (limited to 'src/accounts.php')
-rw-r--r--src/accounts.php5
1 files changed, 0 insertions, 5 deletions
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();