Single Sign On from non-WP site
-
Hey all,
I have a website that users log into and would like to sign in/register the user when the go to the bbpress forum. The site is NOT a wordpress site.
I have read several posts on this topic:http://bbpress.org/forums/topic/integrating-with-external-authentication-system/
being the most recent but none of them seem to work. I can successfully log in or create a new user. They show up as logged in on the home page. However when they click any link bbpress does not recognize them as the current user and the login form is displayed again.
We are using bbpress 2.0 db version 2471.
Here is the code I have been inserting either in a file of its own (linking to that file from my system with login parameters passed) or in the header.php file of my businesslike template:
-new_user( compact( ‘user_login’, ‘user_email’, ‘user_url’, ‘user_nicename’, ‘user_status’, ‘user_pass’, ‘display_name’ ) ); if ( is_wp_error($user) ) { echo ” got an error “.$user->get_error_code(); } $user = bb_login( $_GET[‘login’], $_GET[‘password’],1 ); }
$user = bb_set_current_user( $user->ID );
}?>
- You must be logged in to reply to this topic.