Tweak signin so you don't need a phone to login in dev mode

This commit is contained in:
Kenneth Kehl
2023-08-30 07:41:04 -07:00
parent 6cf9314df8
commit 4df9fa934d
3 changed files with 15 additions and 5 deletions

View File

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

View File

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