We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues Addressed:
Note: this may not be backward compatible given the way $domain was specified, but it does follow the Google spec located here........
https://github.com/google/google-authenticator/wiki/Key-Uri-Format
public function getUrl($issuer, $user, $secret, $width = 200, $height = 200) { $url = sprintf("otpauth://totp/%s:%s?secret=%s&issuer=%s", rawurlencode($issuer), $user, $secret, rawurlencode($issuer)); $encoder = sprintf("https://www.google.com/chart?chs=%dx%d&chld=M|0&cht=qr&chl=",$width,$height); $encoderURL = sprintf( "%s%s",$encoder, rawurlencode($url)); return $encoderURL; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issues Addressed:
Note: this may not be backward compatible given the way $domain was specified, but it does follow the Google spec located here........
https://github.com/google/google-authenticator/wiki/Key-Uri-Format
The text was updated successfully, but these errors were encountered: