Hi, thank you for response.
function custom_login() {
if($_POST['log_submit']) {
$creds = array();
$creds['user_login'] = $_POST['log_username'];
$creds['user_password'] = $_POST['log_pass'];
$creds['remember'] = true;
$user = wp_signon( $creds, false );
wp_set_current_user($user);
if ( is_wp_error($user) )
echo $user->get_error_message();
}
}
// run it before the headers and cookies are sent
add_action( 'after_setup_theme', 'custom_login' );
i am using this, and have simple login form, only username, password, remember me and submit button.
I wan’t to make it so that users only register and login through wordpress.
After login there is like 16 cookies, all of phpbb cookies content are ‘deleted’ and wordpress cookies content are ‘+’.
Is there a way to implement custom login, have you done it already?