(20250123) Listing permitted from disabled accounts, new activity not allowed.
This commit is contained in:
@@ -222,13 +222,10 @@ async def send_sms_messages_api(
|
||||
# Get the token from the token key:
|
||||
auth_token = await current_app.sms_controller.get_token_from_key(
|
||||
mongo_data_conn = current_app.data_mongo,
|
||||
token_key = inbound_data.tokenKey
|
||||
)
|
||||
if auth_token is None: return ResponseModel(
|
||||
status_code = StatusCodes.FAILED,
|
||||
http_code = HttpCodes.UNAUTHORIZED,
|
||||
message = f"No such token key."
|
||||
token_key = inbound_data.tokenKey,
|
||||
must_be_active = True
|
||||
)
|
||||
if not auth_token: return constants.API_RESPONSE_NO_AUTH_TOKEN
|
||||
|
||||
# ┏┓ ┓ ┏┳┓┓ ┏┓┳┳┓┏┓
|
||||
# ┗┓┏┓┏┓┏┫ ┃ ┣┓┏┓ ┗┓┃┃┃┗┓
|
||||
|
||||
Reference in New Issue
Block a user