User log auto white list for limited time.

This is so that temporary IP addresses are not permanently allowed.
This commit is contained in:
FusionPBX 2023-03-29 19:13:10 -06:00 committed by GitHub
parent 54be67935b
commit 7d31d6958b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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');