thedevdojo / auth

This is the repo for the DevDojo Auth package
https://devdojo.com/auth
MIT License
444 stars 32 forks source link

Extension imagick not enabled/installed #88

Closed AlexVanSteenhoven closed 1 month ago

AlexVanSteenhoven commented 1 month ago

Describe the bug I wanted to set up Two-Factor Authentication, once ready I wanted to set up 2fa for my user but got the error that imagick is not installed. When I was looking for the extension in the php.ini, I didn't find the extension in the list, so I am kinda lost here.

Also, maybe add an option to the env file to select another driver. I've tested the SvgImageBackEnd, it showed a broken image, but when I converted the base64 string in an online tool, I've got the QR to show

To Reproduce Steps to reproduce the behavior:

  1. Setup 2FA through /auth/setup or change the <project>/config/devdojo/settings.php file and set enable 2fa to true
  2. Create an account
  3. Enable 2fa at /user/two-factor-authentication
  4. See error

Expected behavior A QR code to pop up to scan with your phone

Screenshots image

System Details

Additional context I am using Laravel Herd

skdishansachin commented 1 month ago

@AlexVanSteenhoven Hey, you were right. I was able to recreate the problem. I fixed it by installing imagick on my Ubuntu system. If you're using Windows, I found a blog post that could guide you through the installation process. You can also refer to the official PHP documentation for installing imagick.

tnylea commented 1 month ago

Thanks @skdishansachin 👏

Just tagged a new release: https://github.com/thedevdojo/auth/releases/tag/1.0.4 which should resolve this :)