mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 20:25:34 +00:00
yubicootp: Hackily fix issue of misreading padded signatures from
responses :)
This commit is contained in:
parent
0487031974
commit
adc4931a57
|
@ -92,7 +92,7 @@ class YubicoOTP(Cog):
|
|||
|
||||
# Turn the fields to a python dict for easier parsing
|
||||
datafields = resptext.strip().split("\r\n")
|
||||
datafields = {line.split("=")[0]: line.split("=")[1] for line in datafields}
|
||||
datafields = {line[line.index("=") + 1:]: line[line.index("="):] for line in datafields}
|
||||
|
||||
# Verify nonce
|
||||
assert datafields["nonce"] == nonce
|
||||
|
|
Loading…
Reference in a new issue