summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_captiveportal_vouchers.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-08-18 16:39:06 -0300
committerRenato Botelho <renato@netgate.com>2016-08-18 16:42:20 -0300
commit2355a762c90af3863ac1669ada81a1ad25981709 (patch)
tree20da99542dd2a33f7a84c004885fdb4ea92119ae /src/usr/local/www/services_captiveportal_vouchers.php
parentf81e7cc404bc3ede065c8c6315fdb5d26b2cfc5b (diff)
downloadpfsense-2355a762c90af3863ac1669ada81a1ad25981709.zip
pfsense-2355a762c90af3863ac1669ada81a1ad25981709.tar.gz
Ticket #3734: Pass username on all xmlrpc calls
Diffstat (limited to 'src/usr/local/www/services_captiveportal_vouchers.php')
-rw-r--r--src/usr/local/www/services_captiveportal_vouchers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/services_captiveportal_vouchers.php b/src/usr/local/www/services_captiveportal_vouchers.php
index 5180bb8..b6cf157 100644
--- a/src/usr/local/www/services_captiveportal_vouchers.php
+++ b/src/usr/local/www/services_captiveportal_vouchers.php
@@ -327,7 +327,7 @@ EOF;
$input_errors[] = $error;
} else {
try {
- $resp = $cli->exec_php($newvoucher['vouchersyncpass'], $execcmd);
+ $resp = $cli->exec_php($newvoucher['vouchersyncusername'], $newvoucher['vouchersyncpass'], $execcmd);
} catch (XML_RPC2_FaultException $e) {
// The XMLRPC server returns a XMLRPC error
$error = 'Exception calling XMLRPC method exec_php #' . $e->getFaultCode() . ' : ' . $e->getFaultString();
OpenPOWER on IntegriCloud