Merge pull request #1812 from caternuson/totp_fix

Fix TOTP Code
This commit is contained in:
Carter Nelson 2021-08-30 13:01:18 -07:00 committed by GitHub
commit 3db598efa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ def base32_decode(encoded):
n = ord(c) - ord('A')
elif '2' <= c <= '7':
n = ord(c) - ord('2') + 26
elif n == '=':
elif c == '=':
continue
else:
raise ValueError("Not base32")

View file

@ -129,7 +129,7 @@ def base32_decode(encoded):
n = ord(c) - ord('A')
elif '2' <= c <= '7':
n = ord(c) - ord('2') + 26
elif n == '=':
elif c == '=':
continue
else:
raise ValueError("Not base32")

View file

@ -92,7 +92,7 @@ def base32_decode(encoded):
n = ord(c) - ord('A')
elif '2' <= c <= '7':
n = ord(c) - ord('2') + 26
elif n == '=':
elif c == '=':
continue
else:
raise ValueError("Not base32")