mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-01-03 17:15:35 +00:00
yubicootp: one more bugfix
This commit is contained in:
parent
f5ece42b15
commit
161caf30e6
|
@ -92,7 +92,7 @@ class YubicoOTP(Cog):
|
||||||
|
|
||||||
# Turn the fields to a python dict for easier parsing
|
# Turn the fields to a python dict for easier parsing
|
||||||
datafields = resptext.strip().split("\r\n")
|
datafields = resptext.strip().split("\r\n")
|
||||||
datafields = {line[line.index("=") + 1]: line[:line.index("=")] for line in datafields}
|
datafields = {line[:line.index("=")]: line[line.index("=") + 1:] for line in datafields}
|
||||||
|
|
||||||
# Verify nonce
|
# Verify nonce
|
||||||
assert datafields["nonce"] == nonce
|
assert datafields["nonce"] == nonce
|
||||||
|
|
Loading…
Reference in a new issue