WordPress.org

Ready to get started?Download WordPress

Forums

BP Disable Activation
Fix for multisite login bug in bp-disable-activation plugin (3 posts)

  1. Peter Baylies
    Member
    Posted 2 years ago #

    To fix the bug with multisite not logging in on registration, add this line after the password gets reset and before the auto-login code:

    clean_user_cache( $signup['user_id'] );

    It took me a while to track this down; the issue, for the curious, is that while the password does get changed after user creation, the cache of it isn't getting invalidated, therefore the password fragment (which is used in cookie creation) is different, and therefore the hashes for the cookie don't match what is expected, hence, no login.

    Hope this helps someone else; cheers.

    http://wordpress.org/extend/plugins/bp-disable-activation/

  2. defunctlife
    Member
    Posted 2 years ago #

    Can you post your entire file so we know exactly where this goes?

    Thanks!

  3. Peter Baylies
    Member
    Posted 2 years ago #

    Line 129 would work fine, for example, right before the do_action( 'bp_core_account_activated', &$signup, $_GET['key'] );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic