mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-28 11:06:53 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b5d455b27 | |||
| aac54360a9 | |||
| a73f119a58 | |||
| 8a726eda5d | |||
| fa781c14e3 | |||
| ab6b059df5 | |||
| aec91881bf |
+14
-6
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "robthree/twofactorauth",
|
"name": "robthree/twofactorauth",
|
||||||
"description": "Two Factor Authentication",
|
"description": "Two Factor Authentication",
|
||||||
"version": "1.5",
|
"version": "1.5.2",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"keywords": [ "Authentication", "Two Factor Authentication", "Multi Factor Authentication", "TFA", "MFA", "PHP", "Authenticator", "Authy" ],
|
"keywords": [ "Authentication", "Two Factor Authentication", "Multi Factor Authentication", "TFA", "MFA", "PHP", "Authenticator", "Authy" ],
|
||||||
"homepage": "https://github.com/RobThree/TwoFactorAuth",
|
"homepage": "https://github.com/RobThree/TwoFactorAuth",
|
||||||
@@ -17,12 +17,20 @@
|
|||||||
"issues": "https://github.com/RobThree/TwoFactorAuth/issues",
|
"issues": "https://github.com/RobThree/TwoFactorAuth/issues",
|
||||||
"source": "https://github.com/RobThree/TwoFactorAuth"
|
"source": "https://github.com/RobThree/TwoFactorAuth"
|
||||||
},
|
},
|
||||||
"autoload": {
|
|
||||||
"classmap": [
|
|
||||||
"lib/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.0"
|
"php": ">=5.3.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "@stable"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"RobThree\\Auth\\": "lib"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"RobThree\\Auth\\Test\\": "tests"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ class TwoFactorAuth
|
|||||||
/**
|
/**
|
||||||
* Builds a string to be encoded in a QR code
|
* 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)
|
return 'otpauth://totp/' . rawurlencode($label)
|
||||||
. '?secret=' . rawurlencode($secret)
|
. '?secret=' . rawurlencode($secret)
|
||||||
|
|||||||
Reference in New Issue
Block a user