From be950a7322362feea8abb779feb4216c381b7c67 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 9 Jan 2024 13:09:07 -0800 Subject: [PATCH] no verification code on staging --- app/user/rest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/user/rest.py b/app/user/rest.py index 7941504ee..f5dda2a93 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -352,6 +352,11 @@ def create_2fa_code( ) redis_store.set(f"2facode_{saved_notification.id}", recipient, ex=1800) + stored_recipient = redis_store.get("2facode_{saved_notification.id}") + if stored_recipient: + current_app.logger.info("IN user/rest.py we saved the recipient of the 2facode to redis!") + else: + current_app.logger.info("IN user/rest.py we did NOT save the recipient of the 2facode to redis!") # Assume that we never want to observe the Notify service's research mode # setting for this notification - we still need to be able to log into the # admin even if we're doing user research using this service: