From 3fd785654372d493c031d9b541ab33a881023a32 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Feb 2021 19:16:17 +0300 Subject: * switch to composer for qrcode and otp dependencies * move most OTP-related stuff into userhelper * remove old phpqrcode and otphp libraries --- vendor/OTPHP/HOTP.php | 74 --------------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 vendor/OTPHP/HOTP.php (limited to 'vendor/OTPHP/HOTP.php') diff --git a/vendor/OTPHP/HOTP.php b/vendor/OTPHP/HOTP.php deleted file mode 100644 index 7092fd9ff..000000000 --- a/vendor/OTPHP/HOTP.php +++ /dev/null @@ -1,74 +0,0 @@ -generateOTP($count); - } - - - /** - * Verify if a password is valid for a specific counter value - * - * @param integer $otp the one-time password - * @param integer $counter the counter value - * @return bool true if the counter is valid, false otherwise - */ - public function verify($otp, $counter) { - return ($otp == $this->at($counter)); - } - - /** - * Returns the uri for a specific secret for hotp method. - * Can be encoded as a image for simple configuration in - * Google Authenticator. - * - * @param string $name the name of the account / profile - * @param integer $initial_count the initial counter - * @return string the uri for the hmac secret - */ - public function provisioning_uri($name, $initial_count) { - return "otpauth://hotp/".urlencode($name)."?secret={$this->secret}&counter=$initial_count"; - } - } - -} -- cgit v1.2.3