From e09ad9d74d38b159ce0687627f1503e2b9cf3653 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Wed, 12 Feb 2025 13:10:41 +0100
Subject: [PATCH] :bug: Fix REST response for manual connection
---
.../ppcp-settings/src/Endpoint/AuthenticationRestEndpoint.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/ppcp-settings/src/Endpoint/AuthenticationRestEndpoint.php b/modules/ppcp-settings/src/Endpoint/AuthenticationRestEndpoint.php
index 40c82ffab..23f08631b 100644
--- a/modules/ppcp-settings/src/Endpoint/AuthenticationRestEndpoint.php
+++ b/modules/ppcp-settings/src/Endpoint/AuthenticationRestEndpoint.php
@@ -174,7 +174,7 @@ class AuthenticationRestEndpoint extends RestEndpoint {
}
$account = $this->authentication_manager->get_account_details();
- $response = $this->sanitize_for_javascript( $this->response_map, $account );
+ $response = $this->sanitize_for_javascript( $account, $this->response_map );
return $this->return_success( $response );
}