/** * Constructor sets up {@link $firstvar} */ public function __construct() { //OCP\Util::writeLog('OC_USER_OTP', $name.'().', OCP\Util::DEBUG); $this->mOtp = new MultiOtpDb(OCP\Config::getAppValue('user_otp', 'EncryptionKey', 'DefaultCliEncryptionKey')); if (defined('DEBUG') && DEBUG === true) { $this->mOtp->EnableVerboseLog(); } $this->mOtp->SetMaxBlockFailures(OCP\Config::getAppValue('user_otp', 'MaxBlockFailures', 6)); $this->mOtp->SetMaxEventWindow(OCP\Config::getAppValue('user_otp', 'UserTokenMaxEventWindow', 100)); }