jleclanche / python-bna

Python implementation of the mobile Blizzard Authenticator (TOTP)
https://eu.battle.net/support/en/article/24520
MIT License
250 stars 38 forks source link

Remove extra colon from OTPauth format #12

Closed tprobinson closed 7 years ago

tprobinson commented 7 years ago

Hello,

After attempting to use this library, I found that generated OTPauth URLs showed as "Invalid token" when scanned into FreeOTP. Removing this extra colon allowed FreeOTP to understand the URL, and the generated codes then worked on Battle.NET.

I don't fully understand the OTPauth URL format, but this worked for me, so I figured I'd send in a PR.

jleclanche commented 7 years ago

Thanks!