mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Tweak signin so you don't need a phone to login in dev mode
This commit is contained in:
@@ -34,7 +34,7 @@ def check_sms_delivery_receipt(self, message_id, notification_id, sent_at):
|
||||
failure appears in the cloudwatch logs, so this should keep retrying until the log appears, or until
|
||||
we run out of retries.
|
||||
"""
|
||||
# TODO the localstack version of cloudwatch doesn't have our log groups. Possibly create them with awslocal?
|
||||
# TODO the localstack cloudwatch doesn't currently have our log groups. Possibly create them with awslocal?
|
||||
if aws_cloudwatch_client.is_localstack():
|
||||
status = 'success'
|
||||
provider_response = 'this is a fake successful localstack sms message'
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
import os
|
||||
import uuid
|
||||
from datetime import datetime
|
||||
from urllib.parse import urlencode
|
||||
@@ -197,6 +198,11 @@ def verify_user_password(user_id):
|
||||
|
||||
@user_blueprint.route('/<uuid:user_id>/verify/code', methods=['POST'])
|
||||
def verify_user_code(user_id):
|
||||
|
||||
# TODO -- Hmmm! Is this safe?
|
||||
if os.getenv("LOCALSTACK_ENDPOINT_URL"):
|
||||
return jsonify({}), 204
|
||||
|
||||
data = request.get_json()
|
||||
validate(data, post_verify_code_schema)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user