Skip to content

Commit

Permalink
redirection on loggedin removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rafasashi committed Jan 27, 2017
1 parent d63b83d commit 6cec7bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions includes/class-user-session-synchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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{
Expand Down

0 comments on commit 6cec7bf

Please sign in to comment.