mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If vouchers are disabled do not allow users to authenticate thorugh existing(active/in use) vouchers. Reported-by: http://forum.pfsense.org/index.php/topic,38342.0.html
This commit is contained in:
parent
c3ebb66946
commit
1a863be222
@ -301,6 +301,9 @@ function voucher_expire($voucher_received) {
|
||||
function voucher_auth($voucher_received, $test = 0) {
|
||||
global $g, $config;
|
||||
|
||||
if (!isset($config['voucher']['enable']))
|
||||
return 0;
|
||||
|
||||
$voucherlck = lock('voucher', LOCK_EX);
|
||||
|
||||
// XMLRPC Call over to the master Voucher node
|
||||
|
||||
Loading…
Reference in New Issue
Block a user