Update src/lib/Hydra/Controller/User.pm
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
19f9d8249f
commit
20d8134936
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue