From ecfd1ddc0e34caed7d30da80e7b17d616e1903aa Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 7 Aug 2019 10:48:57 -0400 Subject: [PATCH] Fixup format of XMLRPC auth error to match GUI auth error. (cherry picked from commit 6e0d47510ee553f5219c08c097c32d377985822b) --- src/usr/local/www/xmlrpc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/usr/local/www/xmlrpc.php b/src/usr/local/www/xmlrpc.php index dc11ba9ea5..b0edba9ddc 100644 --- a/src/usr/local/www/xmlrpc.php +++ b/src/usr/local/www/xmlrpc.php @@ -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(