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