diff --git a/auth/oauth2/confirm-linkedlogin.php b/auth/oauth2/confirm-linkedlogin.php index 6dc69a2066c..26182afb069 100644 --- a/auth/oauth2/confirm-linkedlogin.php +++ b/auth/oauth2/confirm-linkedlogin.php @@ -40,8 +40,8 @@ if ($confirmed) { // The user has confirmed successfully, let's log them in. - if (!$user = get_complete_user_data('username', $username)) { - print_error('cannotfinduser', '', '', s($username)); + if (!$user = get_complete_user_data('id', $userid)) { + print_error('cannotfinduser', '', '', $userid); } if (!$user->suspended) {