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: