Merged in jennydmz/processmaker/GI-218 (pull request #3440)

GI-218
This commit is contained in:
Dante Loayza
2015-12-22 17:27:38 -04:00
2 changed files with 3 additions and 2 deletions

View File

@@ -297,10 +297,11 @@ class PMGoogleApi
} else {
throw new Exception(G::LoadTranslation('ID_GOOGLE_FILE_P12_ERROR'));
}
$data = json_decode($key);
$assertionCredentials = new Google_Auth_AssertionCredentials(
$credentials->emailServiceAccount,
$scope,
$key
$data->private_key
);
$assertionCredentials->sub = $this->user;

View File

@@ -178,7 +178,7 @@ Ext.onReady(function(){
});
}
},
regex : /(.)+((\.p12)(\w)?)$/i,
regex : /(.)+((\.json)(\w)?)$/i,
regexText : _('ID_PMG_TYPE_ACCEPT')
},
{