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

  1. Peter Baylies
    Posted 3 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.


  2. defunctlife
    Posted 3 years ago #

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


  3. Peter Baylies
    Posted 3 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

  • BP Disable Activation
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic