How to bypass login page with an existing user login?
-
Hi,
We have an existing, complicated user database and we added WordPress MU to the site so that our users can blog.
Our users login using the standard interface (outside WP) and I’m wondering if there is a way for them to bypass the WP login screen.
I’ve tried loading their user info, inserting or updating an entry into the “wp_users” table with the same user name, password, etc. That part is working fine.
But getting WP to recognize the user is logged in is where I’m stuck. Currently I’m using this code (after filling $creditentials, other variables are left to be filled by WP) :
wp_signon($creditentials, $wpCookie); wp_set_auth_cookie($user->ID, false);
Is there something else I need to call?
- The topic ‘How to bypass login page with an existing user login?’ is closed to new replies.