Compare commits

...

3 Commits

Author SHA1 Message Date
Rob Janssen fa781c14e3 Update composer.json 2016-06-24 17:52:02 +02:00
Rob Janssen ab6b059df5 Merge pull request #7 from JonathanTru/master
changed getQRText() from private to public
2016-06-24 17:50:15 +02:00
Jonathan Trummer aec91881bf 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)
2016-06-24 17:34:39 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "robthree/twofactorauth",
"description": "Two Factor Authentication",
"version": "1.5",
"version": "1.5.1",
"type": "library",
"keywords": [ "Authentication", "Two Factor Authentication", "Multi Factor Authentication", "TFA", "MFA", "PHP", "Authenticator", "Authy" ],
"homepage": "https://github.com/RobThree/TwoFactorAuth",
+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)