public function getQRCodeGoogleUrl($company, $holder, $secret, $size = 200)
27
{
28
2
if (!$this->allowInsecureCallToGoogleApis) {
29
1
throw new InsecureCallException("It's not secure to send secret keys to Google Apis, you have to explicitly allow it by calling \$google2fa->setAllowInsecureCallToGoogleApis(true).");
30
}
31
32
1
return Url::generateGoogleQRCodeUrl(
33
1
'https://chart.googleapis.com/',
34
1
'chart',
35
1
'chs='.$size.'x'.$size.'&chld=M|0&cht=qr&chl=',
36
1
$this->getQRCodeUrl($company, $holder, $secret)
37
);
38
}
39
40
/**
41
* Creates a QR code url.
42
*
43
* @param $company
44
* @param $holder
45
* @param $secret
46
*
47
* @return string
48
*/
49
1
public function getQRCodeUrl($company, $holder, $secret)