Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_2fa/lib/Kolab2FA/Driver/HOTP.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | public function init($config) | ||||
'type' => 'integer', | 'type' => 'integer', | ||||
'editable' => false, | 'editable' => false, | ||||
'hidden' => true, | 'hidden' => true, | ||||
'generator' => 'random_counter', | 'generator' => 'random_counter', | ||||
), | ), | ||||
); | ); | ||||
// copy config options | // copy config options | ||||
$this->backend = new \Kolab2FA\OTP\HOTP(); | $this->backend = new \OTPHP\HOTP(); | ||||
$this->backend | $this->backend | ||||
->setDigits($this->config['digits']) | ->setDigits($this->config['digits']) | ||||
->setDigest($this->config['digest']) | ->setDigest($this->config['digest']) | ||||
->setIssuer($this->config['issuer']) | ->setIssuer($this->config['issuer']) | ||||
->setIssuerIncludedAsParameter(true); | ->setIssuerIncludedAsParameter(true); | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |