mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Restore this back to allow both users and vouchers enabled at same time.
This commit is contained in:
parent
8f5d92a99b
commit
f45075dd98
@ -697,7 +697,7 @@ function captiveportal_prune_old() {
|
||||
}
|
||||
|
||||
/* if vouchers are configured, activate session timeouts */
|
||||
if (!$timedout && isset($config['voucher']['enable'])) {
|
||||
if (!$timedout && isset($config['voucher']['enable']) && !empty($cpentry[7])) {
|
||||
if ($pruning_time >= ($cpentry[0] + $cpentry[7])) {
|
||||
$timedout = true;
|
||||
$term_cause = 5; // Session-Timeout
|
||||
|
||||
Loading…
Reference in New Issue
Block a user