google2fa-laravel
google2fa-laravel copied to clipboard
You need to install the imagick extension to use this back end, even on 2.0.1
I am trying not to have to use imagick, but still getting error from the title.
Using 2.0.1 version of the package. Laravel 8.61.0
Config published, with 'qrcode_image_backend' => \PragmaRX\Google2FALaravel\Support\Constants::QRCODE_IMAGE_BACKEND_SVG,
I am even generating QR code (in SVG format) in a custom way using Endroid. It works, it shows up correctly.
Then when trying to verify using Google2FA::verifyKey($secret, $value);
I get:
You need to install the imagick extension to use this back end {"exception":"[object] (BaconQrCode\\Exception\\RuntimeException(code: 0): You need to install the imagick extension to use this back end at /var/www/site/vendor/bacon/bacon-qr-code/src/Renderer/Image/ImagickImageBackEnd.php:64)
as if facade is requiring imagick anyway. Basically wherever I call Google2FA
facade it results with this error.
Please advise.
Any progress?
I am getting the same error when I try to use the middleware. Config settings do absolutely nothing.
Tried setting the runtime, nothing. I verified pecl list and imagick installed
Installed packages, channel pecl.php.net:
=========================================
Package Version State
imagick 3.7.0 stable
How can only 2 people be asking this question?
There is a bug in the Google2FA class. I've submitted a PR.