no verification code on staging

This commit is contained in:
Kenneth Kehl
2024-01-09 13:09:07 -08:00
parent a0d0ec33d6
commit be950a7322

View File

@@ -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: