コード例 #1
0
 /**
  * Generate provision URI according to KeyUriFormat
  *
  * @link https://code.google.com/p/google-authenticator/wiki/KeyUriFormat
  * @param string $label User label.
  * @param array $opts Additional URI parameters, e.g. ['image' => 'http://example.com/my_logo.png'] .
  * @throws \Bitrix\Main\ArgumentTypeException
  * @return string
  */
 public function generateUri($label, array $opts = array())
 {
     $opts += array('counter' => 1);
     return parent::generateUri($label, $opts);
 }
コード例 #2
0
ファイル: totpalgorithm.php プロジェクト: mrdeadmouse/u136006
 /**
  * Generate provision URI according to KeyUriFormat
  *
  * @link https://code.google.com/p/google-authenticator/wiki/KeyUriFormat
  * @param string $label User label.
  * @param array $opts Additional URI parameters, e.g. ['image' => 'http://example.com/my_logo.png'] .
  * @throws \Bitrix\Main\ArgumentTypeException
  * @return string
  */
 public function generateUri($label, array $opts = array())
 {
     $opts += array('period' => $this->getInterval());
     return parent::generateUri($label, $opts);
 }