takelogin bark when self-enable feature is disable

This commit is contained in:
xiaomlove
2026-04-09 13:37:05 +07:00
parent 431fbfff56
commit d115a3879a

View File

@@ -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'])) {