Forums

user log in (1 post)

  1. animasola
    Member
    Posted 2 years ago #

    Hi,

    What I did is have the authentication process elsewhere, in a main system. WordPress is to be a blog module for a bigger system. What else do I need so that the user will be authenticated into the WordPress system?

    So far, here are what I used, give that there already is a $user:

    wp_set_auth_cookie($user->ID, false);
    do_action('wp_login', $user->user_login);
    redirect('http://localhost.localdomain/mublog/wp-admin/');

    what else do i need? once i redirect it, it returns me to the wordpress authentication page.

    Any piece of advice would be greatly appreciated, thanks! :)

Topic Closed

This topic has been closed to new replies.

About this Topic