-
Notifications
You must be signed in to change notification settings - Fork 168
REST API related issues for signups and pending accounts #396
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
Conversation
| * | ||
| * @return mixed | ||
| */ | ||
| function bp_rest_api_signup_disabled_feature_dispatch_error( $result, $server, $request ) { |
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.
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'] ) ) { |
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.
Multiple pending accounts can be registered with the same email address, but different usernames. That's a bug, IMO.
imath
left a comment
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.
@renatonascalves thanks for this huge work. I've tested the patch and it works as expected. Feel free to SVN commit it.
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
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
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
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.