You are here

protected function TfaTotpSetup::getQrCodeUrl in TFA Basic plugins 7

Get a URL to a Google Chart QR image for a seed.

Parameters

string $seed:

Return value

string URL

1 call to TfaTotpSetup::getQrCodeUrl()
TfaTotpSetup::getSetupForm in includes/tfa_totp.inc
@copydoc TfaSetupPluginInterface::getSetupForm()

File

includes/tfa_totp.inc, line 283
classes for tfa_totp

Class

TfaTotpSetup
Class TfaTotpSetup

Code

protected function getQrCodeUrl($seed) {

  // Note, this URL is over https but does leak the seed and account
  // email address to Google. See README.txt for local QR code generation
  // using qrcode.js.
  return $this->ga
    ->getQRCodeGoogleUrl($this
    ->accountName(), $seed);
}