• Resolved tedstur

    (@tedstur)


    I have been pulling my hair out (and I don’t have much to lose) over PowerPress’ inability to authenticate against Membershipworks. The reason is that Membershipworks does not use the person’s email address for the ID of the account. After messing around for a long time, I made these changes and they appear to work. Posting this in case others need it (file is powerpress-feed-auth.php):

    // old code
    // $userObj = wp_authenticate($user, $password);

    // if( !is_wp_error($userObj) )
    // {
    // Check capability…
    // if( $userObj->has_cap( $FeedSettings[‘premium’] ) )
    // return; // Nice, let us continue…
    // powerpress_feed_auth_basic( $FeedSettings[‘title’], __(‘Access Denied’, ‘powerpress’) );
    // exit;
    // }

    // new code
    $userObjID = get_user_by( ’email’, $user );
    if( !is_wp_error($userIDObj) )
    {
    $userObj = wp_authenticate($userObjID->user_login, $password);
    if( !is_wp_error($userObj) )
    {
    // Check capability…
    if( $userObj->has_cap( $FeedSettings[‘premium’] ) )
    return; // Nice, let us continue…
    powerpress_feed_auth_basic( $FeedSettings[‘title’], __(‘Access Denied’, ‘powerpress’) );
    exit;
    }
    } else {
    powerpress_feed_auth_basic( $FeedSettings[‘title’], __(‘Access Denied’, ‘powerpress’) );
    exit;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tedstur

    (@tedstur)

    Did this some weeks back and got nowhere. Not trying to be a jerk here, but the fix wasn’t that hard and should be considered as an option in the core code.

    Plugin Support Shawn

    (@shawnogordo)

    I have asked the Blubrry dev team to look at your post. A response will be posted here as soon as they’ve had a chance to look at it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Membershipworks’ is closed to new replies.