Compare commits

...

7 Commits

Author SHA1 Message Date
Rob Janssen 0b5d455b27 Update composer.json 2016-10-30 22:47:00 +01:00
Rob Janssen aac54360a9 Merge pull request #10 from anvyst/master
switching to PSR-4 autoloading standard
2016-10-30 22:40:45 +01:00
Andrey Vystavkin a73f119a58 removed .editconfig from repo and phpcs 2016-10-30 16:38:10 +02:00
Andrey Vystavkin 8a726eda5d switching to PSR-4 autoloading standard 2016-10-30 16:20:47 +02:00
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 15 additions and 7 deletions
+14 -6
View File
@@ -1,7 +1,7 @@
{
"name": "robthree/twofactorauth",
"description": "Two Factor Authentication",
"version": "1.5",
"version": "1.5.2",
"type": "library",
"keywords": [ "Authentication", "Two Factor Authentication", "Multi Factor Authentication", "TFA", "MFA", "PHP", "Authenticator", "Authy" ],
"homepage": "https://github.com/RobThree/TwoFactorAuth",
@@ -17,12 +17,20 @@
"issues": "https://github.com/RobThree/TwoFactorAuth/issues",
"source": "https://github.com/RobThree/TwoFactorAuth"
},
"autoload": {
"classmap": [
"lib/"
]
},
"require": {
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "@stable"
},
"autoload": {
"psr-4": {
"RobThree\\Auth\\": "lib"
}
},
"autoload-dev": {
"psr-4": {
"RobThree\\Auth\\Test\\": "tests"
}
}
}
+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)