-
I'm trying to generate a QR Code from an otpauth URI (like below). Sometimes, the code generates a valid image, that can be read by my phone. However, most of the time it outputs an invalid code.
Parsed result:
Is there any way to solve this? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, thanks for the report! I checked back with dev-main and cannot reproduce the error. It would be very helpful if you could post the code that produced the above QR code. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply, @codemasher! I've figured out what I was doing wrong. I was encrypting data before sending to the image generator file ( Now, everything seems to work fine. Merry Christmas! |
Beta Was this translation helpful? Give feedback.
Thank you for your reply, @codemasher!
I've figured out what I was doing wrong. I was encrypting data before sending to the image generator file (
qrcode.php
) via GET parameters. When decrypting, I mistakenly used the param instead of the decrypted string, which explains why I was seeing a different QR Code every page refresh. A stupid error that caused me headaches for hours (laughs).Now, everything seems to work fine.
Merry Christmas!
Pedro