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)
This commit is contained in:
Jonathan Trummer
2016-06-24 17:34:39 +02:00
parent cdb98dc598
commit aec91881bf
+1 -1
View File
@@ -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)