Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2011 09:17:21 PM (14 years ago)
Author:
djpaul
Message:

Tell users if they've been marked as a spammer, or haven't activated their account yet, when they try to log in. Fixes #2575

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r3718 r3734  
    602602
    603603    if ( 2 == $user_status )
    604         bp_core_redirect( $bp->root_domain );
     604        return new WP_Error( 'bp_account_not_activated', __( '<strong>ERROR</strong>: Your account has not been activated. Check your email for the activation link.', 'buddypress' ) );
    605605    else
    606606        return $auth_obj;
    607607}
    608 add_filter( 'authenticate', 'bp_core_signup_disable_inactive', 11, 2 );
     608add_filter( 'authenticate', 'bp_core_signup_disable_inactive', 30, 2 );
    609609
    610610/* Kill the wp-signup.php if custom registration signup templates are present */
Note: See TracChangeset for help on using the changeset viewer.