rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -59,7 +59,7 @@ class wfRESTAuthenticationController {
* @return mixed|WP_REST_Response
*/
public function authenticate($request) {
require_once(WORDFENCE_PATH . '/crypto/vendor/paragonie/sodium_compat/autoload-fast.php');
require_once(WORDFENCE_PATH . '/lib/sodium_compat_fast.php');
$siteID = wfConfig::get('wordfenceCentralSiteID');
if (!$siteID) {
@@ -120,7 +120,7 @@ class wfRESTAuthenticationController {
* @return mixed|WP_REST_Response
*/
public function authenticatePremium($request) {
require_once(WORDFENCE_PATH . '/crypto/vendor/paragonie/sodium_compat/autoload-fast.php');
require_once(WORDFENCE_PATH . '/lib/sodium_compat_fast.php');
// verify signature.
$data = $request->get_param('data');

View File

@@ -312,7 +312,7 @@ class wfRESTConfigController extends wfRESTBaseController {
* @return mixed|WP_REST_Response
*/
public function premiumConnect($request) {
require_once(WORDFENCE_PATH . '/crypto/vendor/paragonie/sodium_compat/autoload-fast.php');
require_once(WORDFENCE_PATH . '/lib/sodium_compat_fast.php');
// Store values sent by Central.
$wordfenceCentralPK = $request['public-key'];