Fixup format of XMLRPC auth error to match GUI auth error.

(cherry picked from commit 6e0d47510e)
This commit is contained in:
jim-p 2019-08-07 10:48:57 -04:00
parent e0bd07fdae
commit ecfd1ddc0e

View File

@ -61,8 +61,9 @@ class pfsense_xmlrpc_server {
}
if (!$login_ok) {
log_auth("webConfigurator authentication error for '" .
$username . "' from " . $this->remote_addr);
log_auth(sprintf(gettext("webConfigurator authentication error for user '%1\$s' from: %2\$s"),
$username,
$this->remote_addr));
require_once("XML/RPC2/Exception.php");
throw new XML_RPC2_FaultException(gettext(