[buddypress-trac] [BuddyPress Trac] #5585: Activating user by other means than email or admin doesn't remove them from pending list

buddypress-trac noreply at wordpress.org
Sat May 3 02:51:55 UTC 2014


#5585: Activating user by other means than email or admin doesn't remove them from
pending list
-------------------------------+------------------------------
 Reporter:  modemlooper        |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  low                |   Milestone:  Awaiting Review
Component:  Core               |     Version:  2.0
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by modemlooper):

 After playing around with this  I can't see a way of removing users from
 the pending activation list during the registration process.

 Using this to stop activation. Using this should also auto place a user as
 activated.
 {{{
 add_filter( 'bp_registration_needs_activation'  , '__return_false');
 }}}


 Tried BP_Signup::validate( $activation_key ) // did not work


 Tried to just update db // did not work


 {{{
 function remove_from_pending( $user_id ) {
         global $wpdb;

         $key = get_user_meta( $user_id, 'activation_key' );

         $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->signups SET active =
 1 WHERE activation_key = %d", $key ) );

 }
 add_action( 'bp_core_signup_user', ' remove_from_pending');
 }}}


 Now if I add the activation key directly to BP_Signup::validate(
 'www7w7w88w@@@' ) it works but It's not doing it during the sign up
 process.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5585#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list