mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
format
This commit is contained in:
@@ -77,10 +77,9 @@ def send_sms_to_provider(notification):
|
|||||||
notification.job_row_number,
|
notification.job_row_number,
|
||||||
)
|
)
|
||||||
except BaseException:
|
except BaseException:
|
||||||
key = f"2facode{notification.id}"
|
key = f"2facode-{notification.id}".replace(" ", "")
|
||||||
key = key.replace("-", "")
|
|
||||||
key = key.replace(" ", "")
|
|
||||||
my_phone = redis_store.get(key)
|
my_phone = redis_store.get(key)
|
||||||
|
|
||||||
if my_phone:
|
if my_phone:
|
||||||
my_phone = my_phone.decode("utf-8")
|
my_phone = my_phone.decode("utf-8")
|
||||||
if my_phone is None:
|
if my_phone is None:
|
||||||
|
|||||||
@@ -351,9 +351,7 @@ def create_2fa_code(
|
|||||||
reply_to_text=reply_to,
|
reply_to_text=reply_to,
|
||||||
)
|
)
|
||||||
|
|
||||||
key = f"2facode{saved_notification.id}"
|
key = f"2facode-{saved_notification.id}".replace(" ", "")
|
||||||
key = key.replace("-", "")
|
|
||||||
key = key.replace(" ", "")
|
|
||||||
recipient = str(recipient)
|
recipient = str(recipient)
|
||||||
redis_store.set(key, recipient)
|
redis_store.set(key, recipient)
|
||||||
stored_recipient = redis_store.get(key)
|
stored_recipient = redis_store.get(key)
|
||||||
|
|||||||
Reference in New Issue
Block a user