From dbf73d0b61b45601ae95e51b23c051c2704169c5 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 31 Mar 2025 20:38:42 +0200 Subject: [PATCH] Show/hide IP Ban Protection options depending on the value (enabled/disabled) --- system/settings.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/system/settings.php b/system/settings.php index dcd32ebc..d2c2745b 100644 --- a/system/settings.php +++ b/system/settings.php @@ -1622,14 +1622,20 @@ Sent by MyAAC,
'name' => 'Login Attempts Limit', 'type' => 'number', 'desc' => 'Number of incorrect login attempts before banning the IP', - 'default' => 5, // Ajuste conforme necessário + 'default' => 5, + 'show_if' => [ + 'account_login_ipban_protection', '=', 'true' + ] ], 'account_login_ban_time' => [ 'name' => 'Ban Time (Minutes)', 'type' => 'number', 'desc' => 'Time in minutes the IP will be banned after exceeding login attempts', - 'default' => 30, // Ajuste conforme necessário + 'default' => 30, + 'show_if' => [ + 'account_login_ipban_protection', '=', 'true' + ] ], ], 'callbacks' => [