Cherry-pick from PR #2435 (Show TOTP Issuer)
This commit is contained in:
@@ -123,7 +123,8 @@ class TotpAuth extends Base implements PostAuthenticationProviderInterface
|
||||
return '';
|
||||
}
|
||||
|
||||
return GoogleAuthenticator::getQrCodeUrl('totp', $label, $this->secret);
|
||||
$options = array('issuer' => TOTP_ISSUER);
|
||||
return GoogleAuthenticator::getQrCodeUrl('totp', $label, $this->secret, null, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,6 +140,7 @@ class TotpAuth extends Base implements PostAuthenticationProviderInterface
|
||||
return '';
|
||||
}
|
||||
|
||||
return GoogleAuthenticator::getKeyUri('totp', $label, $this->secret);
|
||||
$options = array('issuer' => TOTP_ISSUER);
|
||||
return GoogleAuthenticator::getKeyUri('totp', $label, $this->secret, null, $options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user