antonioribeiro / google2fa-qrcode

QRCode for Google2FA
MIT License
106 stars 25 forks source link

Wrong class name check for chillerlan/php-qrcode #7

Closed sergejostir closed 3 years ago

sergejostir commented 3 years ago

https://github.com/antonioribeiro/google2fa-qrcode/blob/ee335b6f5debf78bc8c781038ea78a27cf74ba4e/src/Google2FA.php#L107-L108

Your should be checking for class_exists('chillerlan\QRCode\QRCode')

I guess that the OR condition class_exists('BaconQrCode\Renderer\ImageRenderer') is also just a typo and shouldn't be there.