Skip to content

Conversation

@renatonascalves
Copy link
Member

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9137


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

@renatonascalves renatonascalves self-assigned this Oct 29, 2024
@renatonascalves renatonascalves requested a review from imath October 29, 2024 00:09
*
* @return mixed
*/
function bp_rest_api_signup_disabled_feature_dispatch_error( $result, $server, $request ) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Here I'm trying to be helpful to the user. Communicating they need to activate this feature for it to work. The default error message is not very helpful.

}

// Is the email already in use in a signup?
if ( ! isset( $errors['in_use'] ) ) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Multiple pending accounts can be registered with the same email address, but different usernames. That's a bug, IMO.

Copy link
Contributor

@imath imath left a comment

Choose a reason for hiding this comment

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

@renatonascalves thanks for this huge work. I've tested the patch and it works as expected. Feel free to SVN commit it.

@renatonascalves renatonascalves deleted the feature/9137 branch November 3, 2024 18:54
dcavins pushed a commit to dcavins/buddypress-wp-svn that referenced this pull request Nov 3, 2024
We are improving how signups and pending accounts are handled in BuddyPress.

- activation emails resend are blocked for one hour, by default;
- emails are checked if they are already in use in a signup;
- `signup` endpoint (https://developer.buddypress.org/bp-rest-api/reference/signup/) returns a useful error when feature is disabled;
- `Signup::resend`: Added the ability to resend to a single ID, instead of an array of IDs.

Props niftythree and imath.

Closes buddypress/buddypress#396
See #9229 and #9145
Fixes #9137

git-svn-id: http://buddypress.svn.wordpress.org/trunk@14071 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
emaralive pushed a commit to emaralive/omt-buddypress-sync that referenced this pull request Nov 2, 2025
We are improving how signups and pending accounts are handled in BuddyPress.

- activation emails resend are blocked for one hour, by default;
- emails are checked if they are already in use in a signup;
- `signup` endpoint (https://developer.buddypress.org/bp-rest-api/reference/signup/) returns a useful error when feature is disabled;
- `Signup::resend`: Added the ability to resend to a single ID, instead of an array of IDs.

Props niftythree and imath.

Closes buddypress/buddypress#396
See #9229 and #9145
Fixes #9137

git-svn-id: https://buddypress.svn.wordpress.org/trunk@14071 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
emaralive pushed a commit to emaralive/buddypress-sync that referenced this pull request Nov 3, 2025
We are improving how signups and pending accounts are handled in BuddyPress.

- activation emails resend are blocked for one hour, by default;
- emails are checked if they are already in use in a signup;
- `signup` endpoint (https://developer.buddypress.org/bp-rest-api/reference/signup/) returns a useful error when feature is disabled;
- `Signup::resend`: Added the ability to resend to a single ID, instead of an array of IDs.

Props niftythree and imath.

Closes buddypress/buddypress#396
See #9229 and #9145
Fixes #9137

git-svn-id: https://buddypress.svn.wordpress.org/trunk@14071 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants