RegisterSuccess

[insert_php]
$user_name =$_GET[’email’];
// $random_password = $_GET[‘pwd’];
//$random_password = wp_generate_password( 64, true, true );
$random_password = ‘CsG@min@1702141459′;
$user_email = $_GET[’email’];

//echo $user_name ;
//echo $random_password;
//echo $user_email;

echo ‘Welcome to Crystalsoftwaregroup.com ‘;
echo $user_email;

//$user = get_user_by( ‘id’, $user_id );
$user = get_user_by(“login”, $user_name );
if( $user ) {
echo ‘ already register user’;

}
else
{
$user = wp_create_user( $user_name, $random_password, $user_email );
echo ‘ new user’;
}

if($user != “FALSE”)
{
echo ‘ log in –> ‘;
$user = get_user_by(‘login’, $user_name );
$user_id = $user->ID;
//login
wp_set_current_user($user_id, $user_name );
wp_set_auth_cookie($user_id);

if ( is_user_logged_in() )
{ echo “SUCCESS”; }
else { echo “not yet login !”; }

}
else
{
echo ‘ no log in ‘;
}

[/insert_php]

Thank you for your register !!!!!

Login