Skip to content

Commit 9555c1f

Browse files
committed
New. Integration. BuddyBoss app REST api protection implemented.
1 parent 1e401e7 commit 9555c1f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

inc/cleantalk-public-validate.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,22 @@ function_exists('hivepress') &&
398398
),
399399
)
400400
);
401+
} elseif(
402+
// BuddyBoss App - request from mobile app usually
403+
apbct_is_plugin_active('buddyboss-app/buddyboss-app.php') &&
404+
Server::getString('REQUEST_URI') === '/wp-json/buddyboss-app/v1/signup'
405+
) {
406+
$data = [
407+
'code' => 'bp_rest_register_errors',
408+
'message' => [
409+
'signup_email' => $ct_result->comment
410+
],
411+
'data' => [
412+
'status' => 403,
413+
],
414+
];
415+
wp_send_json($data);
416+
401417
} else {
402418
ct_die(null, null);
403419
}

0 commit comments

Comments
 (0)