Does anyone knows a way to add the logo to the reqistration qr code, so that the custom logo will show inside the Google or MS authenticator app? I've already tried few options, but nothing. Even tried using chatgppt, but it turned out to be completely useless going around in circles 😂
I am guessing this is for the QR code generator. Have you tried a different one? If you got the url to be created that is the important part. Then use that url in your QR generation app of your choice. You can even use a system online (not super safe nor recommended in this case) but you can use it to test your code.
you can modify your code this way: - comment or remove this line: use BaconQrCode\Renderer\Image\ImagickImageBackEnd; - add this line instead (or below the previous one): use BaconQrCode\Renderer\Image\SvgImageBackEnd; this will load the Svg library instead of the Imagick one, which doesn't require Imagick or GD, and will generate a .svg image, which is lighter and more high-density pixels screens friendly. - this portion of code: $renderer = new ImageRenderer( new RendererStyle(250), new ImagickImageBackEnd() ); becomes: $renderer = new ImageRenderer( new RendererStyle(250), new SvgImageBackEnd() ); - then change the file name from .png to .svg - the tag becomes:
super great tutorial!! 🙂 very clear, you explain things well with enough details to understand everything, thanks for sharing this!
Glad it was helpful!
Thank you! Your implementation and explanation in this video worked like a charm.
Great tutorial, thank you very much.
thanks. is it advisable to store the secret keys in the database? I'm only limited to this option right now.
Not advisable, but many times as states it is the only feasible way
this does nothing, I scan the QR code, enter the numbers and press verify, yet nothing happens at all, and it doesn't matter what I put in
Question, how can we link that with the google auth application ?
Via a generated QR code
Does anyone knows a way to add the logo to the reqistration qr code, so that the custom logo will show inside the Google or MS authenticator app? I've already tried few options, but nothing. Even tried using chatgppt, but it turned out to be completely useless going around in circles 😂
thanks i love you
Glad it helped
Hello, my web host does not use imagemagick extension but GD2. How can I change the code? thanks
I am guessing this is for the QR code generator. Have you tried a different one? If you got the url to be created that is the important part. Then use that url in your QR generation app of your choice. You can even use a system online (not super safe nor recommended in this case) but you can use it to test your code.
you can modify your code this way:
- comment or remove this line: use BaconQrCode\Renderer\Image\ImagickImageBackEnd;
- add this line instead (or below the previous one): use BaconQrCode\Renderer\Image\SvgImageBackEnd;
this will load the Svg library instead of the Imagick one, which doesn't require Imagick or GD, and will generate a .svg image, which is lighter and more high-density pixels screens friendly.
- this portion of code:
$renderer = new ImageRenderer(
new RendererStyle(250),
new ImagickImageBackEnd()
);
becomes:
$renderer = new ImageRenderer(
new RendererStyle(250),
new SvgImageBackEnd()
);
- then change the file name from .png to .svg
- the tag becomes:
Thanks for the help!