Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO fixes, fixed uncaught error #36

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions includes/Services/MigrationSSO.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace NewfoldLabs\WP\Module\Migration\Services;

use NewFoldLabs\WP\Module\SSO\SSO_REST_Controller;
use NewFoldLabs\WP\Module\SSO\SSO_Helpers;
/**
* Migration SSO service
*/
Expand All @@ -19,7 +19,7 @@ public static function get_magic_login_url() {
'fields' => 'ID', // Retrieve only the ID field
);

$user_query = new WP_User_Query( $args );
$user_query = new \WP_User_Query( $args );

// Get the results
$user_ids = $user_query->get_results();
Expand All @@ -37,7 +37,7 @@ public static function get_magic_login_url() {
)
);

// Return token and the magic login URL
return rest_ensure_response( admin_url( '/admin-ajax.php' ) . "?{$query_string}" );
$response = rest_ensure_response( admin_url( '/admin-ajax.php' ) . "?{$query_string}" );
return $response;
}
}
Loading