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

Switching wizard admin user creation to use /dbconnections/signup #356

Merged
merged 3 commits into from
Jan 8, 2018

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Jan 8, 2018

In testing dev, @cocojoe and I found that the /api/v2/users endpoint used in WP_Auth0_Api_Client::create_user would not authenticate because the API Client being used was not being activated by default for the Database Connection that was being made. We created a new method, WP_Auth0_Api_Client::signup_user to use the Authentication signup endpoint.

@joshcanhelp joshcanhelp added this to the v3-Next milestone Jan 8, 2018
Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for now

'email' => $current_user->user_email,
'password' => $_POST['admin-password'],
'connection' => $db_connection_name,
'email_verified' => true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it seems there is a change in behaviour here as the user will need to manually verify their email. I am okay with this.

@cocojoe cocojoe merged commit c90bb28 into dev Jan 8, 2018
@cocojoe cocojoe deleted the fixed-wizard-admin-user-create branch January 8, 2018 22:24
@cocojoe cocojoe mentioned this pull request Jan 8, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants