mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-09-01 13:07:28 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fa781c14e3 | |||
| ab6b059df5 | |||
| aec91881bf |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "robthree/twofactorauth",
|
"name": "robthree/twofactorauth",
|
||||||
"description": "Two Factor Authentication",
|
"description": "Two Factor Authentication",
|
||||||
"version": "1.5",
|
"version": "1.5.1",
|
||||||
"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",
|
||||||
|
|||||||
@@ -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