PHPGangsta / GoogleAuthenticator

PHP class to generate and verify Google Authenticator 2-factor authentication
http://phpgangsta.de/4376
BSD 2-Clause "Simplified" License
2.23k stars 689 forks source link

I added the function getOTPUrl to get the otp:// url from the secret #84

Open her-finn opened 3 years ago

her-finn commented 3 years ago

since i don't want to send the screts to google, i created a function that outputs the otp: // url and then creates the barcode itself

The function works like the getQRCodeGoogleUrl function, but without the parameter $params.

MarkMaldaba commented 3 years ago

Good thinking.

I would also update getQRCodeGoogleUrl() to call this new function, rather than duplicating the functionality.

her-finn commented 3 years ago

I dont think so because the function is named getQRCodeGoogleUrl(). People who want a fast copy and paste solution are thinking that some data ist send to google.