patch totp code
This commit is contained in:
parent
7db7f00732
commit
6c0c06ccc5
3 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue