diff --git a/includes/class-user-session-synchronizer.php b/includes/class-user-session-synchronizer.php index 651cbc8..278e70a 100644 --- a/includes/class-user-session-synchronizer.php +++ b/includes/class-user-session-synchronizer.php @@ -384,7 +384,9 @@ public function ussync_synchronize_session(){ $sessions->destroy_all(); } - if($user=get_user_by('email',$user_email)){ + $user = get_user_by('email',$user_email); + + if( isset($user->ID) && intval($user->ID) > 0 ){ //do the authentication @@ -400,7 +402,11 @@ public function ussync_synchronize_session(){ //redirect after authentication - wp_safe_redirect( rtrim( get_site_url(), '/' ) . '/?ussync-status=loggedin'); + //wp_safe_redirect( rtrim( get_site_url(), '/' ) . '/?ussync-status=loggedin'); + + + echo 'User '.$user->ID . ' logged in...'; + exit; } } else{