@@ -297,10 +297,11 @@ class PMGoogleApi
|
|||||||
} else {
|
} else {
|
||||||
throw new Exception(G::LoadTranslation('ID_GOOGLE_FILE_P12_ERROR'));
|
throw new Exception(G::LoadTranslation('ID_GOOGLE_FILE_P12_ERROR'));
|
||||||
}
|
}
|
||||||
|
$data = json_decode($key);
|
||||||
$assertionCredentials = new Google_Auth_AssertionCredentials(
|
$assertionCredentials = new Google_Auth_AssertionCredentials(
|
||||||
$credentials->emailServiceAccount,
|
$credentials->emailServiceAccount,
|
||||||
$scope,
|
$scope,
|
||||||
$key
|
$data->private_key
|
||||||
);
|
);
|
||||||
$assertionCredentials->sub = $this->user;
|
$assertionCredentials->sub = $this->user;
|
||||||
|
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ Ext.onReady(function(){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
regex : /(.)+((\.p12)(\w)?)$/i,
|
regex : /(.)+((\.json)(\w)?)$/i,
|
||||||
regexText : _('ID_PMG_TYPE_ACCEPT')
|
regexText : _('ID_PMG_TYPE_ACCEPT')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user