Opened 2 years ago
Closed 23 months ago
#8693 closed enhancement (fixed)
Site Members Invitations & configs using signups only
Reported by: | imath | Owned by: | dcavins |
---|---|---|---|
Milestone: | 11.0.0 | Priority: | normal |
Severity: | normal | Version: | 8.0.0 |
Component: | Members | Keywords: | commit |
Cc: |
Description
I've recently noticed the Site Members Invitations feature was only available on regular WordPress configs. If it's a multisite one or a a "single" site one using the BP_SIGNUPS_SKIP_USER_CREATION
constant, it just fails activating the account.
I think we shouldn't rely on this bp_get_user_meta( $user_id, 'activation_key', true );
or the wp_user ID for the feature. BTW, imho, WordPress single site shouldn't create the user on "single" site registration.
I wonder if the invitation hash used could be replaced by the activation key so that we could directly query the signup to validate the invitation instead.
I'd like we investigate this improvement which would make the feature available for all BuddyPress configs.
Attachments (1)
Change History (8)
This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.
2 years ago
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
2 years ago
This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.
2 years ago
#5
@
23 months ago
The attached patch works for me when tested with single sites (with and without BP_SIGNUPS_SKIP_USER_CREATION
set) and in a WP Network setup. Please let me know if there is another configuration that I need to be testing.
Happily, it was simpler than expected to fix.
SIte invitations: Do not assume that a user exists. a651ce5f5 In some BuddyPress setups, a user is not created until the signup has been activated. This is the case when
BP_SIGNUPS_SKIP_USER_CREATION
is set totrue
and when installed on a WodPress network. So we rely on theBP_Signup
instead of the dodgy user inbp_members_invitations_complete_signup()
.