diff options
author | Renato Botelho <renato@netgate.com> | 2016-08-18 16:39:06 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-08-18 16:42:20 -0300 |
commit | 2355a762c90af3863ac1669ada81a1ad25981709 (patch) | |
tree | 20da99542dd2a33f7a84c004885fdb4ea92119ae /src/etc/inc/voucher.inc | |
parent | f81e7cc404bc3ede065c8c6315fdb5d26b2cfc5b (diff) | |
download | pfsense-2355a762c90af3863ac1669ada81a1ad25981709.zip pfsense-2355a762c90af3863ac1669ada81a1ad25981709.tar.gz |
Ticket #3734: Pass username on all xmlrpc calls
Diffstat (limited to 'src/etc/inc/voucher.inc')
-rw-r--r-- | src/etc/inc/voucher.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/voucher.inc b/src/etc/inc/voucher.inc index 3a131a5..1ed3845 100644 --- a/src/etc/inc/voucher.inc +++ b/src/etc/inc/voucher.inc @@ -72,7 +72,7 @@ EOF; } try { - $resp = $cli->exec_php($password, $execcmd); + $resp = $cli->exec_php($username, $password, $execcmd); } catch (XML_RPC2_FaultException $e) { // The XMLRPC server returns a XMLRPC error $error = 'Exception calling XMLRPC method exec_php #' . $e->getFaultCode() . ' : ' . $e->getFaultString(); @@ -144,7 +144,7 @@ EOF; } try { - $resp = $cli->exec_php($password, $execcmd); + $resp = $cli->exec_php($username, $password, $execcmd); } catch (XML_RPC2_FaultException $e) { // The XMLRPC server returns a XMLRPC error $error = 'Exception calling XMLRPC method exec_php #' . $e->getFaultCode() . ' : ' . $e->getFaultString(); @@ -215,7 +215,7 @@ EOF; } try { - $resp = $cli->exec_php($password, $execcmd); + $resp = $cli->exec_php($username, $password, $execcmd); } catch (XML_RPC2_FaultException $e) { // The XMLRPC server returns a XMLRPC error $error = 'Exception calling XMLRPC method exec_php #' . $e->getFaultCode() . ' : ' . $e->getFaultString(); |