rebase on oct-10-2023
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user