Merge pull request #7 from JonathanTru/master

changed getQRText() from private to public
This commit is contained in:
Rob Janssen
2016-06-24 17:50:15 +02:00
committed by GitHub
+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)