From 0513e0633d5b4dd4fbd6a452d7b7562651b83374 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 22 Mar 2025 12:43:40 +0300 Subject: [PATCH] refactor: Disallow registration functionality --- library/config.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/config.php b/library/config.php index 4a1792e2a..51fffc0fa 100644 --- a/library/config.php +++ b/library/config.php @@ -417,8 +417,11 @@ $bb_cfg['last_visit_update_intrv'] = 3600; // sec $bb_cfg['invalid_logins'] = 5; // Max incorrect password submits before showing captcha $bb_cfg['new_user_reg_disabled'] = false; // Disable registration of new users $bb_cfg['unique_ip'] = false; // Disallow registration from multiple IP addresses -$bb_cfg['new_user_reg_restricted'] = false; // Disallow registration in below hours -$bb_cfg['new_user_reg_interval'] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]; // Available hours +$bb_cfg['new_user_reg_restricted'] = [ // Disallow registration in below hours + 'enabled' => false, + 'start_time' => '22:30', + 'end_time' => '08:00', +]; $bb_cfg['reg_email_activation'] = true; // Demand to activate profile by email confirmation $bb_cfg['invites_system'] = [ 'enabled' => false,