This commit is contained in:
Kenneth Kehl
2024-01-09 14:01:03 -08:00
parent d3ca06fec2
commit 5366992d1a
2 changed files with 3 additions and 6 deletions

View File

@@ -351,9 +351,7 @@ def create_2fa_code(
reply_to_text=reply_to,
)
key = f"2facode{saved_notification.id}"
key = key.replace("-", "")
key = key.replace(" ", "")
key = f"2facode-{saved_notification.id}".replace(" ", "")
recipient = str(recipient)
redis_store.set(key, recipient)
stored_recipient = redis_store.get(key)