From d115a3879aa77c5ea9a05205269bef2b18dc4eb7 Mon Sep 17 00:00:00 2001 From: xiaomlove <1939737565@qq.com> Date: Thu, 9 Apr 2026 13:37:05 +0700 Subject: [PATCH] takelogin bark when self-enable feature is disable --- public/takelogin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/takelogin.php b/public/takelogin.php index 73f29f19..d55c505f 100644 --- a/public/takelogin.php +++ b/public/takelogin.php @@ -36,8 +36,9 @@ if (!$row) failedlogins(); if ($row['status'] == 'pending') failedlogins($lang_takelogin['std_user_account_unconfirmed']); -//if ($row["enabled"] == "no") -// bark($lang_takelogin['std_account_disabled']); +if ($row["enabled"] == "no" && \App\Models\Setting::getSelfEnableBonus() <= 0) { + bark($lang_takelogin['std_account_disabled']); +} if (!empty($row['two_step_secret'])) { if (empty($_POST['two_step_code'])) {