patch totp code

This commit is contained in:
caternuson 2021-08-30 10:53:50 -07:00
parent 7db7f00732
commit 6c0c06ccc5
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")