예제 #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
 /**
  * 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);
 }