google2fa-laravel icon indicating copy to clipboard operation
google2fa-laravel copied to clipboard

You need to install the imagick extension to use this back end, even on 2.0.1

Open stojanvujkov opened this issue 3 years ago • 2 comments

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.

stojanvujkov avatar Dec 03 '21 20:12 stojanvujkov

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?

movepixels avatar Feb 14 '22 02:02 movepixels

There is a bug in the Google2FA class. I've submitted a PR.

JC5 avatar Mar 30 '22 15:03 JC5