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/spomky-labs/otphp/src/OTPInterface.php | 97 +++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 vendor/spomky-labs/otphp/src/OTPInterface.php (limited to 'vendor/spomky-labs/otphp/src/OTPInterface.php') diff --git a/vendor/spomky-labs/otphp/src/OTPInterface.php b/vendor/spomky-labs/otphp/src/OTPInterface.php new file mode 100644 index 000000000..66e163d5d --- /dev/null +++ b/vendor/spomky-labs/otphp/src/OTPInterface.php @@ -0,0 +1,97 @@ + + */ + public function getParameters(): array; + + /** + * @param mixed|null $value + */ + public function setParameter(string $parameter, $value): void; + + /** + * Get the provisioning URI. + */ + public function getProvisioningUri(): string; + + /** + * Get the provisioning URI. + * + * @param string $uri The Uri of the QRCode generator with all parameters. This Uri MUST contain a placeholder that will be replaced by the method. + * @param string $placeholder the placeholder to be replaced in the QR Code generator URI + */ + public function getQrCodeUri(string $uri, string $placeholder): string; +} -- cgit v1.2.3