mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
no verification code on staging
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user