-
Notifications
You must be signed in to change notification settings - Fork 38
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
new line at the end of provisioning URI results in invalid QR code #24
Comments
Workaround:
or
|
I use the PyOTP library to generate that URL, could you report the issue there? I fixed the readme. |
I found the real issue. I couldn't reproduce it with pyotp on my own, but I found something different. The provisioning URI is working and correct, but python-bna is always adding a new line at the end. This is messing up the resulting QR code. python-bna:
python-bna with newline trimmed:
|
Fixed thanks! |
I'm glad I could help! Thanks for fixing it! |
Hello!
If I run
bna show-url
then the URL is missing:
between the serial number and the?
:This URL results in an invalid QR code if generated via qrencode. The URL in the readme is correct, though.
Best Regards
Josef
PS: the readme is incorrect about the QR code genration. The readme still shows
bna --otpauth-url
which should be changed tobna show-url
.The text was updated successfully, but these errors were encountered: