Skip to content

Commit

Permalink
Fix: Google oAuth v3 for email and email_verified
Browse files Browse the repository at this point in the history
  • Loading branch information
netdreamer committed May 29, 2014
1 parent f4fa97c commit 45396ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ function loginpage_hook() {
$params = array();
$params['access_token'] = $accesstoken;
$params['alt'] = 'json';
$postreturnvalues = $curl->get('https://www.googleapis.com/userinfo/email', $params);
$postreturnvalues = $curl->get('https://www.googleapis.com/oauth2/v3/userinfo', $params);
$postreturnvalues = json_decode($postreturnvalues);
$useremail = $postreturnvalues->data->email;
$verified = $postreturnvalues->data->isVerified;
$useremail = $postreturnvalues->email;
$verified = $postreturnvalues->email_verified;
break;

case 'facebook':
Expand Down

0 comments on commit 45396ec

Please sign in to comment.