Use email scope

This commit is contained in:
Jelle Besseling 2020-12-30 18:32:57 +01:00
parent e88355b3d4
commit 5f4eddbe57
No known key found for this signature in database
GPG key ID: 9712452E8BE3372E

View file

@ -215,7 +215,7 @@ sub github_redirect :Path('/github-redirect') Args(0) {
value => $after, value => $after,
}; };
$c->res->redirect("https://github.com/login/oauth/authorize?client_id=$client_id"); $c->res->redirect("https://github.com/login/oauth/authorize?client_id=$client_id&scope=user:email");
} }