You are here

protected function TfaTotpSetup::accountName in TFA Basic plugins 7

Get account name for QR image.

Return value

string URL encoded string.

2 calls to TfaTotpSetup::accountName()
TfaTotpSetup::getQrCodeUrl in includes/tfa_totp.inc
Get a URL to a Google Chart QR image for a seed.
TfaTotpSetup::getSetupForm in includes/tfa_totp.inc
@copydoc TfaSetupPluginInterface::getSetupForm()

File

includes/tfa_totp.inc, line 329
classes for tfa_totp

Class

TfaTotpSetup
Class TfaTotpSetup

Code

protected function accountName() {
  $account = user_load($this->context['uid']);
  return urlencode($this->namePrefix . '-' . $account->name);
}