From aec91881bfbd5f9710656ea97c10a8826eadf9f4 Mon Sep 17 00:00:00 2001 From: Jonathan Trummer Date: Fri, 24 Jun 2016 17:34:39 +0200 Subject: [PATCH] changed getQRText() from private to public Changed access modifier for the function getQRText() from private to public. This allows for generating the QR Code in different ways (eg pass the data from getQRText() to the client and have a Javascript Library render the QR Code) --- lib/TwoFactorAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index e70d1d8..e30b711 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -159,7 +159,7 @@ class TwoFactorAuth /** * Builds a string to be encoded in a QR code */ - private function getQRText($label, $secret) + public function getQRText($label, $secret) { return 'otpauth://totp/' . rawurlencode($label) . '?secret=' . rawurlencode($secret)