Update src/lib/Hydra/Controller/User.pm

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
Jelle Besseling 2021-01-04 17:48:43 +01:00 committed by GitHub
parent 19f9d8249f
commit 20d8134936
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,7 +191,6 @@ sub github_login :Path('/github-login') Args(0) {
$email = $eml->{email} if $eml->{verified} && $eml->{primary};
}
print STDERR "$email\n";
$response = $ua->get('https://api.github.com/user', Authorization => "token $access_token");
error($c, "Did not get a response from GitHub for user info.") unless $response->is_success;
$data = decode_json($response->decoded_content) or die;