mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-17 12:11:40 +00:00
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)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user