Skip to content
New issue

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

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

Open
stojanvujkov opened this issue Dec 3, 2021 · 2 comments

Comments

@stojanvujkov
Copy link

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.

@movepixels
Copy link

movepixels commented Feb 14, 2022

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?

@JC5
Copy link

JC5 commented Mar 30, 2022

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

JC5 added a commit to JC5/google2fa-laravel that referenced this issue Mar 30, 2022
JC5 added a commit to JC5/google2fa-laravel that referenced this issue Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants