mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
User log auto white list for limited time.
This is so that temporary IP addresses are not permanently allowed.
This commit is contained in:
@@ -587,6 +587,7 @@
|
||||
$sql .= "from v_user_logs ";
|
||||
$sql .= "where remote_address = :remote_address ";
|
||||
$sql .= "and result = 'success' ";
|
||||
$sql .= "and timestamp > NOW() - INTERVAL '8 days' ";
|
||||
$parameters['remote_address'] = $ip_address;
|
||||
$database = new database;
|
||||
$user_log_count = $database->select($sql, $parameters, 'column');
|
||||
|
||||
Reference in New Issue
Block a user