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

Getting exception after update to ^1

Open vv12131415 opened this issue 5 years ago • 3 comments

> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan ide-helper:generate
Exception: You need to install the imagick extension to use this back end
Skipping \PragmaRX\Google2FALaravel\Facade.
Exception: You need to install the imagick extension to use this back end
Skipping \PragmaRX\Google2FALaravel\Facade.

and after that when I call \PragmaRX\Google2FALaravel\Facade::isActivated() for example I also get BaconQrCode/Exception/RuntimeException with message 'You need to install the imagick extension to use this back end'

Can you make that imagick extension is not required, since, for example, I don't need to draw QR code, I just pass data to frontend and then it draws on frontend.

vv12131415 avatar Mar 30 '19 15:03 vv12131415

Yeah, this is unfortunate I agree, I will try to take a look at it. Thanks for reporting.

antonioribeiro avatar Mar 30 '19 17:03 antonioribeiro

Hello,

This might be related to the QR package, As you can see here: https://github.com/Bacon/BaconQrCode/issues/60

There's some more information in that issue.

DeBelserArne avatar Apr 07 '19 09:04 DeBelserArne

Using the SVG backend got rid of the exception for me (even though im generating QR Code via Google).

'qrcode_image_backend' => \PragmaRX\Google2FALaravel\Support\Constants::QRCODE_IMAGE_BACKEND_SVG

kamui545 avatar Oct 06 '19 01:10 kamui545