From f5ece42b15259ad050ad544bb0c6ac162506bc38 Mon Sep 17 00:00:00 2001 From: Ave Date: Tue, 13 Oct 2020 18:12:55 +0300 Subject: [PATCH] yubicootp: bugfix --- cogs/yubicootp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/yubicootp.py b/cogs/yubicootp.py index 2c6b3ab..e777966 100644 --- a/cogs/yubicootp.py +++ b/cogs/yubicootp.py @@ -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[line.index("=") + 1:]: line[line.index("="):] for line in datafields} + datafields = {line[line.index("=") + 1]: line[:line.index("=")] for line in datafields} # Verify nonce assert datafields["nonce"] == nonce