-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fix migration namespace and callback #694
Conversation
@@ -84,7 +84,7 @@ public function create_wordpress_connection( $app_token, $migration_enabled, $pa | |||
'bareConfiguration' => array( | |||
'endpointUrl' => site_url( 'index.php?a0_action=' ), | |||
'migrationToken' => $migration_token, | |||
'userNamespace' => get_auth0_curatedBlogName(), | |||
'userNamespace' => 'DB-' . get_auth0_curatedBlogName(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for new installations and has not been released yet so OK to change.
@@ -217,9 +217,6 @@ protected function migration_ws_get_user() { | |||
$username = $_POST['username']; | |||
|
|||
$user = get_user_by( 'email', $username ); | |||
if ( ! $user ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This endpoint should only used be used to check the email address.
@@ -66,6 +66,7 @@ public function call( $user_id = null, $email = null ) { | |||
->add_body( 'email', $email ) | |||
// Email is either changed by an admin or verified by WP. | |||
->add_body( 'email_verified', true ) | |||
->add_body( 'client_id', $this->options->get( 'client_id' ) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommended by the API docs for this endpoint
Changes
client_id
to the update user API callTesting
Checklist