mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Reduce the total minutes by the remote minutes used, do not use the value directly. Otherwise the voucher will be cut short or listed invalid when it otherwise should have time left over.
This commit is contained in:
parent
1848a25e0b
commit
f3512fca87
@ -438,7 +438,7 @@ function voucher_auth($voucher_received, $test = 0) {
|
||||
// If we did a XMLRPC sync earlier check the timeleft
|
||||
if (!empty($config['voucher'][$cpzone]['vouchersyncdbip']))
|
||||
if($remote_time_used < $total_minutes)
|
||||
$total_minutes = $remote_time_used;
|
||||
$total_minutes -= $remote_time_used;
|
||||
|
||||
// All given vouchers were valid and this isn't simply a test.
|
||||
// Write back the used DB's
|
||||
|
||||
Loading…
Reference in New Issue
Block a user