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 ); }