diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-20 09:55:39 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-20 09:55:39 -0200 |
commit | 9859f3559000f2ea8b3994d198276029be62ab0f (patch) | |
tree | a37b18c976e01280f4b8b9d47b82dbe57df0429c /src/etc/inc/xmlrpc.inc | |
parent | 3c0b88335559ae6a0ce941d2da9a3c3fd1d135a9 (diff) | |
download | pfsense-9859f3559000f2ea8b3994d198276029be62ab0f.zip pfsense-9859f3559000f2ea8b3994d198276029be62ab0f.tar.gz |
Break long lines
Diffstat (limited to 'src/etc/inc/xmlrpc.inc')
-rw-r--r-- | src/etc/inc/xmlrpc.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/etc/inc/xmlrpc.inc b/src/etc/inc/xmlrpc.inc index 6b137ec..3658063 100644 --- a/src/etc/inc/xmlrpc.inc +++ b/src/etc/inc/xmlrpc.inc @@ -78,7 +78,8 @@ function xmlrpc_auth(&$params) { array_shift($params); unset($params['xmlrpcauth']); return true; - } else if (!empty($params['xmlrpcauth']) && (authenticate_user("admin", $params['xmlrpcauth'], $authcfg) || + } else if (!empty($params['xmlrpcauth']) && + (authenticate_user("admin", $params['xmlrpcauth'], $authcfg) || authenticate_user("admin", $params['xmlrpcauth']))) { array_shift($params); unset($params['xmlrpcauth']); @@ -88,7 +89,8 @@ function xmlrpc_auth(&$params) { array_shift($params); unset($params['xmlrpcauth']); return true; - } else if (!empty($params['xmlrpcauth']) && authenticate_user("admin", $params['xmlrpcauth'])) { + } else if (!empty($params['xmlrpcauth']) && + authenticate_user("admin", $params['xmlrpcauth'])) { array_shift($params); unset($params['xmlrpcauth']); return true; |